[APPHELP] Use GetSystemWindowsDirectory instead of GetWindowsDirectory

This commit is contained in:
Mark Jansen 2018-01-20 22:52:53 +01:00
parent abeaf2e9db
commit 3fd6fcf6eb

View File

@ -692,7 +692,7 @@ BOOL WINAPI SdbPackAppCompatData(HSDB hsdb, PSDBQUERYRESULT pQueryResult, PVOID*
return FALSE;
}
GetWindowsDirectoryW(pData->szModule, _countof(pData->szModule));
GetSystemWindowsDirectoryW(pData->szModule, _countof(pData->szModule));
hr = StringCchCatW(pData->szModule, _countof(pData->szModule), L"\\system32\\apphelp.dll");
if (!SUCCEEDED(hr))
{