mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 10:04:06 +00:00
wusa: Restart 64-bit version from the system32 directory.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9dcdb90f42
commit
c5c610e364
|
@ -1023,7 +1023,8 @@ static void restart_as_x86_64(void)
|
||||||
|
|
||||||
memset(&si, 0, sizeof(si));
|
memset(&si, 0, sizeof(si));
|
||||||
si.cb = sizeof(si);
|
si.cb = sizeof(si);
|
||||||
GetModuleFileNameW(0, filename, MAX_PATH);
|
GetSystemDirectoryW( filename, MAX_PATH );
|
||||||
|
wcscat( filename, L"\\wusa.exe" );
|
||||||
|
|
||||||
Wow64DisableWow64FsRedirection(&redir);
|
Wow64DisableWow64FsRedirection(&redir);
|
||||||
if (CreateProcessW(filename, GetCommandLineW(), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
|
if (CreateProcessW(filename, GetCommandLineW(), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
|
||||||
|
|
Loading…
Reference in a new issue