https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2ffc6846996748c7d81bd…
commit 2ffc6846996748c7d81bd569ba44ffd8bf858bc4
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sat Feb 10 15:31:55 2018 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sat Feb 24 19:33:56 2018 +0100
[ACLAYERS] Add WIN8 and WIN81 VersionLie shims
---
dll/appcompat/shims/layer/versionlie.c | 11 +++++++++++
media/sdb/sysmain.xml | 28 ++++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
diff --git a/dll/appcompat/shims/layer/versionlie.c
b/dll/appcompat/shims/layer/versionlie.c
index 704a8b8da1..38db1d0a19 100644
--- a/dll/appcompat/shims/layer/versionlie.c
+++ b/dll/appcompat/shims/layer/versionlie.c
@@ -48,6 +48,8 @@ VersionLieInfo g_WinVistaSP2 = { 0x17720006, 6, 0, 6002,
VER_PLATFORM_WIN32_NT,
VersionLieInfo g_Win7RTM = { 0x1db00106, 6, 1, 7600, VER_PLATFORM_WIN32_NT, 0, 0 };
+VersionLieInfo g_Win8RTM = { 0x23f00206, 6, 2, 9200, VER_PLATFORM_WIN32_NT, 0, 0 };
+VersionLieInfo g_Win81RTM = { 0x25800306, 6, 3, 9600, VER_PLATFORM_WIN32_NT, 0, 0 };
/* Fill the OSVERSIONINFO[EX][W|A] struct with the info from the generic VersionLieInfo
*/
@@ -229,3 +231,12 @@ BOOL WINAPI SHIM_OBJ_NAME(APIHook_GetVersionExW)(LPOSVERSIONINFOEXA
lpOsVersionI
#include "versionlie.inl"
+#define SHIM_NS Win8RTMVersionLie
+#define VERSION_INFO g_Win8RTM
+#include "versionlie.inl"
+
+#define SHIM_NS Win81RTMVersionLie
+#define VERSION_INFO g_Win81RTM
+#include "versionlie.inl"
+
+
diff --git a/media/sdb/sysmain.xml b/media/sdb/sysmain.xml
index 07a32edce6..a27542e38e 100644
--- a/media/sdb/sysmain.xml
+++ b/media/sdb/sysmain.xml
@@ -173,6 +173,24 @@
<EXCLUDE MODULE="oleaut32.dll" />
<DLLFILE>aclayers.dll</DLLFILE>
</SHIM>
+ <SHIM NAME="Win8RTMVersionLie">
+ <INCLUDE MODULE="shell32.dll" />
+ <INCLUDE MODULE="msi.dll" />
+ <EXCLUDE MODULE="kernel32.dll" />
+ <EXCLUDE MODULE="msvcrt.dll" />
+ <EXCLUDE MODULE="ole32.dll" />
+ <EXCLUDE MODULE="oleaut32.dll" />
+ <DLLFILE>aclayers.dll</DLLFILE>
+ </SHIM>
+ <SHIM NAME="Win81RTMVersionLie">
+ <INCLUDE MODULE="shell32.dll" />
+ <INCLUDE MODULE="msi.dll" />
+ <EXCLUDE MODULE="kernel32.dll" />
+ <EXCLUDE MODULE="msvcrt.dll" />
+ <EXCLUDE MODULE="ole32.dll" />
+ <EXCLUDE MODULE="oleaut32.dll" />
+ <DLLFILE>aclayers.dll</DLLFILE>
+ </SHIM>
<!-- Display mode shims -->
@@ -291,6 +309,16 @@
<SHIM_REF NAME="Win7RTMVersionLie" />
<!-- TODO: Add more fixes! -->
</LAYER>
+ <LAYER NAME="WIN8RTM">
+ <SHIM_REF NAME="Win8RTMVersionLie" />
+ <!-- TODO: Add more fixes! -->
+ </LAYER>
+ <LAYER NAME="WIN81RTM">
+ <SHIM_REF NAME="Win81RTMVersionLie" />
+ <!-- TODO: Add more fixes! -->
+ </LAYER>
+
+
<!-- Display mode layers -->