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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-04-16 11:11:06 +02:00
parent 1c5b3f2001
commit ba713a8cf0
1 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,8 @@ int __cdecl wmain(int argc, WCHAR *argv[])
memset( &si, 0, sizeof(si) );
si.cb = sizeof(si);
GetModuleFileNameW( 0, filename, MAX_PATH );
GetSystemDirectoryW( filename, MAX_PATH );
wcscat( filename, L"\\uninstaller.exe" );
Wow64DisableWow64FsRedirection( &redir );
if (CreateProcessW( filename, GetCommandLineW(), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi ))