Skip to content

Commit af25b89

Browse files
committed
Fix null driver ddi from setting invalid functions
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
1 parent fd6a69d commit af25b89

5 files changed

Lines changed: 876 additions & 0 deletions

File tree

scripts/templates/nullddi.cpp.mako

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ ${tbl['export']['name']}(
176176
}
177177
%else:
178178
%for obj in tbl['functions']:
179+
if (version >= ${th.get_version(obj)}) {
179180
%if 'condition' in obj:
180181
#if ${th.subt(n, tags, obj['condition'])}
181182
%endif
@@ -185,6 +186,7 @@ ${tbl['export']['name']}(
185186
pDdiTable->${th.append_ws(th.make_pfn_name(n, tags, obj), 41)} = nullptr;
186187
#endif
187188
%endif
189+
}
188190

189191
%endfor
190192
%endif

0 commit comments

Comments
 (0)