[KERNEL32]

Use GetSystemDirectoryW for building the path to console.dll

svn path=/trunk/; revision=59870
This commit is contained in:
Hermès Bélusca-Maïto 2013-08-29 14:31:06 +00:00
parent e3a5aaeb41
commit 95ea6a8d77

View file

@ -64,8 +64,8 @@ PropDialogHandler(IN LPVOID lpThreadParameter)
{
WCHAR szBuffer[MAX_PATH];
GetWindowsDirectoryW(szBuffer, MAX_PATH);
wcscat(szBuffer, L"\\system32\\console.dll");
GetSystemDirectoryW(szBuffer, MAX_PATH);
wcscat(szBuffer, L"\\console.dll");
ConsoleLibrary = LoadLibraryW(szBuffer);
if (ConsoleLibrary == NULL)