Skip to content

Commit 9fc7398

Browse files
authored
Merge pull request #735 from kbenzie/benie/val-return-uninitialized-on-null-ddi
[ur] Match null DDI table entry error code
2 parents a00e9ba + 9bd058a commit 9fc7398

File tree

2 files changed

+172
-171
lines changed

2 files changed

+172
-171
lines changed

scripts/templates/valddi.cpp.mako

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ namespace ur_validation_layer
4747
{
4848
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)};
4949

50-
if( nullptr == ${th.make_pfn_name(n, tags, obj)} )
51-
return ${X}_RESULT_ERROR_UNSUPPORTED_FEATURE;
50+
if( nullptr == ${th.make_pfn_name(n, tags, obj)} ) {
51+
return ${X}_RESULT_ERROR_UNINITIALIZED;
52+
}
5253

5354
if( context.enableParameterValidation )
5455
{

0 commit comments

Comments
 (0)