Skip to content

Commit

Permalink
Merge pull request #735 from kbenzie/benie/val-return-uninitialized-o…
Browse files Browse the repository at this point in the history
…n-null-ddi

[ur] Match null DDI table entry error code
  • Loading branch information
kbenzie authored Jul 20, 2023
2 parents a00e9ba + 9bd058a commit 9fc7398
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 171 deletions.
5 changes: 3 additions & 2 deletions scripts/templates/valddi.cpp.mako
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ namespace ur_validation_layer
{
auto ${th.make_pfn_name(n, tags, obj)} = context.${n}DdiTable.${th.get_table_name(n, tags, obj)}.${th.make_pfn_name(n, tags, obj)};

if( nullptr == ${th.make_pfn_name(n, tags, obj)} )
return ${X}_RESULT_ERROR_UNSUPPORTED_FEATURE;
if( nullptr == ${th.make_pfn_name(n, tags, obj)} ) {
return ${X}_RESULT_ERROR_UNINITIALIZED;
}

if( context.enableParameterValidation )
{
Expand Down
Loading

0 comments on commit 9fc7398

Please sign in to comment.