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