https://git.reactos.org/?p=reactos.git;a=commitdiff;h=df35c8d05eff41210b60d…
commit df35c8d05eff41210b60dc5a9515fefc2d8d30a4
Author: Victor Perevertkin <victor.perevertkin(a)reactos.org>
AuthorDate: Wed Mar 10 18:41:46 2021 +0300
Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org>
CommitDate: Wed Mar 10 18:41:46 2021 +0300
[SDK:KMDF] Populate OsVersionInfo in our static linking hack
---
sdk/lib/drivers/wdf/reactos_special.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sdk/lib/drivers/wdf/reactos_special.cpp
b/sdk/lib/drivers/wdf/reactos_special.cpp
index 394e0720865..2d04b3dc0ed 100644
--- a/sdk/lib/drivers/wdf/reactos_special.cpp
+++ b/sdk/lib/drivers/wdf/reactos_special.cpp
@@ -32,6 +32,7 @@ const WDFFUNC *WdfFunctions_01017 = (WDFFUNC
*)(&WdfVersion.Functions);
// PWDF_DRIVER_GLOBALS WdfDriverGlobals =
&((PFX_DRIVER_GLOBALS)&WdfDriverGlobalsVal)->Public;
WDF_BIND_INFO WdfBindInfo = {0};
PWDF_DRIVER_GLOBALS WdfDriverGlobals;
+extern FxLibraryGlobalsType FxLibraryGlobals;
#define KMDF_DEFAULT_NAME "Wdf01000"
@@ -61,6 +62,8 @@ RosInitWdf()
WdfBindInfo.FuncCount = WdfVersion.FuncCount;
WdfBindInfo.FuncTable = (WDFFUNC *)(&WdfVersion.Functions);
fxDriverGlobals->WdfBindInfo = &WdfBindInfo;
+ FxLibraryGlobals.OsVersionInfo.dwMajorVersion = 5;
+ FxLibraryGlobals.OsVersionInfo.dwMinorVersion = 1;
}
void