[APPSHIM_APITEST] Windows 10 test update
authorMark Jansen <mark.jansen@reactos.org>
Sat, 20 Jan 2018 21:53:41 +0000 (22:53 +0100)
committerMark Jansen <mark.jansen@reactos.org>
Sun, 21 Jan 2018 20:13:08 +0000 (21:13 +0100)
modules/rostests/apitests/appshim/versionlie.c

index b36bfe5..aaac992 100644 (file)
@@ -333,8 +333,20 @@ BOOL LoadShimDLL(PCWSTR ShimDll, HMODULE* module, tGETHOOKAPIS* ppGetHookAPIs)
     dll = LoadLibraryW(buf);
     if (!dll)
     {
     dll = LoadLibraryW(buf);
     if (!dll)
     {
-        skip("Unable to load shim dll\n");
-        return FALSE;
+        skip("Unable to load shim dll from AppPatch\n");
+        GetSystemWindowsDirectoryW(buf, _countof(buf));
+
+        if (SUCCEEDED(StringCchCatW(buf, _countof(buf), L"\\System32\\")) &&
+            SUCCEEDED(StringCchCatW(buf, _countof(buf), ShimDll)))
+        {
+            dll = LoadLibraryW(buf);
+        }
+
+        if (!dll)
+        {
+            skip("Unable to load shim dll from System32 (Recent Win10)\n");
+            return FALSE;
+        }
     }
     *module = dll;
     *ppGetHookAPIs = (tGETHOOKAPIS)GetProcAddress(dll, "GetHookAPIs");
     }
     *module = dll;
     *ppGetHookAPIs = (tGETHOOKAPIS)GetProcAddress(dll, "GetHookAPIs");