next;
}
if ($patch{$symbol{$symbol}} && "data" ne $def->{"type"}) {
- print "static struct captive_ModuleList_patchpoint ${symbol}_patchpoint;\n";
+ # We do not declare it 'static' as we sometimes make 'extern' references to it
+ # such as 'ExInitializeNPagedLookasideList_patchpoint' in libcaptive/ex/lookas.c.
+ print "struct captive_ModuleList_patchpoint ${symbol}_patchpoint;\n";
}
if ("data" eq $def->{"type"}) {
die "'data' type not pass-able: $symbol" if $def->{"pass"} || $def->{"wrap"};