mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 22:49:12 +00:00
[SDK:KMDF] Populate OsVersionInfo in our static linking hack
This commit is contained in:
parent
6d1ca3553e
commit
df35c8d05e
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,7 @@ const WDFFUNC *WdfFunctions_01017 = (WDFFUNC *)(&WdfVersion.Functions);
|
||||||
// PWDF_DRIVER_GLOBALS WdfDriverGlobals = &((PFX_DRIVER_GLOBALS)&WdfDriverGlobalsVal)->Public;
|
// PWDF_DRIVER_GLOBALS WdfDriverGlobals = &((PFX_DRIVER_GLOBALS)&WdfDriverGlobalsVal)->Public;
|
||||||
WDF_BIND_INFO WdfBindInfo = {0};
|
WDF_BIND_INFO WdfBindInfo = {0};
|
||||||
PWDF_DRIVER_GLOBALS WdfDriverGlobals;
|
PWDF_DRIVER_GLOBALS WdfDriverGlobals;
|
||||||
|
extern FxLibraryGlobalsType FxLibraryGlobals;
|
||||||
|
|
||||||
#define KMDF_DEFAULT_NAME "Wdf01000"
|
#define KMDF_DEFAULT_NAME "Wdf01000"
|
||||||
|
|
||||||
|
@ -61,6 +62,8 @@ RosInitWdf()
|
||||||
WdfBindInfo.FuncCount = WdfVersion.FuncCount;
|
WdfBindInfo.FuncCount = WdfVersion.FuncCount;
|
||||||
WdfBindInfo.FuncTable = (WDFFUNC *)(&WdfVersion.Functions);
|
WdfBindInfo.FuncTable = (WDFFUNC *)(&WdfVersion.Functions);
|
||||||
fxDriverGlobals->WdfBindInfo = &WdfBindInfo;
|
fxDriverGlobals->WdfBindInfo = &WdfBindInfo;
|
||||||
|
FxLibraryGlobals.OsVersionInfo.dwMajorVersion = 5;
|
||||||
|
FxLibraryGlobals.OsVersionInfo.dwMinorVersion = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue