From ba713a8cf0c6b0dda0c6828a191dcf7b7acd22e7 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 16 Apr 2021 11:11:06 +0200 Subject: [PATCH] uninstaller: Restart 64-bit version from the system32 directory. Signed-off-by: Alexandre Julliard --- programs/uninstaller/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/uninstaller/main.c b/programs/uninstaller/main.c index 7236f1689e5..42aa53631f1 100644 --- a/programs/uninstaller/main.c +++ b/programs/uninstaller/main.c @@ -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 ))