Merged PR 6103324: Remove usage of non-generic error code (FWP_E_NULL_POINTER)

Motivation:
Addressing Dwayne comment on the previous PR. [Ref: [6093117](https://dev.azure.com/microsoft/WindowsAI/_git/onnxruntime/pullrequest/6093117?discussionId=44292162&path=%2Fonnxruntime%2Fcore%2Fproviders%2Fdml%2FDmlExecutionProvider%2Fsrc%2FGraphPartitioner.cpp)]

Changes:
Inside the DML EP, we should not use some other platform specific error codes. Instead we should a appropriate generic error code.

Related work items: #33076298
This commit is contained in:
Sumit Agarwal 2021-05-29 00:16:28 +00:00
parent 3f43a84e10
commit bccf29210c

View file

@ -235,7 +235,7 @@ namespace Dml::GraphDescBuilder
const onnxruntime::NodeArg* graphOutput = graph.GetNodeArg(
GraphKernelHelper::GetFusedNodeArgNameMatchingGraph(fusedNodeOutputDefs[outputIndex]->Name()));
THROW_HR_IF_NULL_MSG(FWP_E_NULL_POINTER, graphOutput, "FusedNode's nodeArgList does not contain one of the nodeArg");
THROW_HR_IF_NULL_MSG(E_POINTER, graphOutput, "FusedNode's nodeArgList does not contain one of the nodeArg");
const auto& outputNodeAndIndex = nameToNodeAndIndexMap.at(graphOutput->Name());
DML_OUTPUT_GRAPH_EDGE_DESC edge = {};