Commit c5c610e3 authored by Alexandre Julliard's avatar Alexandre Julliard

wusa: Restart 64-bit version from the system32 directory.

parent 9dcdb90f
......@@ -1023,7 +1023,8 @@ static void restart_as_x86_64(void)
memset(&si, 0, sizeof(si));
si.cb = sizeof(si);
GetModuleFileNameW(0, filename, MAX_PATH);
GetSystemDirectoryW( filename, MAX_PATH );
wcscat( filename, L"\\wusa.exe" );
Wow64DisableWow64FsRedirection(&redir);
if (CreateProcessW(filename, GetCommandLineW(), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment