mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
[APPSHIM_APITEST] Windows 10 test update
This commit is contained in:
parent
f9395e92af
commit
eec2e288be
1 changed files with 14 additions and 2 deletions
|
@ -333,8 +333,20 @@ BOOL LoadShimDLL(PCWSTR ShimDll, HMODULE* module, tGETHOOKAPIS* ppGetHookAPIs)
|
||||||
dll = LoadLibraryW(buf);
|
dll = LoadLibraryW(buf);
|
||||||
if (!dll)
|
if (!dll)
|
||||||
{
|
{
|
||||||
skip("Unable to load shim dll\n");
|
skip("Unable to load shim dll from AppPatch\n");
|
||||||
return FALSE;
|
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;
|
*module = dll;
|
||||||
*ppGetHookAPIs = (tGETHOOKAPIS)GetProcAddress(dll, "GetHookAPIs");
|
*ppGetHookAPIs = (tGETHOOKAPIS)GetProcAddress(dll, "GetHookAPIs");
|
||||||
|
|
Loading…
Reference in a new issue