Commit bb0c660e authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Always start the 64-bit version of wineboot.exe on Wow64.

parent 3397a8b4
......@@ -357,6 +357,7 @@ BOOL WINAPI ExitWindowsEx( UINT flags, DWORD reason )
WCHAR cmdline[MAX_PATH + 64];
PROCESS_INFORMATION pi;
STARTUPINFOW si;
void *redir;
GetSystemDirectoryW( app, MAX_PATH - sizeof(winebootW)/sizeof(WCHAR) );
strcatW( app, winebootW );
......@@ -372,11 +373,14 @@ BOOL WINAPI ExitWindowsEx( UINT flags, DWORD reason )
memset( &si, 0, sizeof si );
si.cb = sizeof si;
Wow64DisableWow64FsRedirection( &redir );
if (!CreateProcessW( app, cmdline, NULL, NULL, FALSE, DETACHED_PROCESS, NULL, NULL, &si, &pi ))
{
Wow64RevertWow64FsRedirection( redir );
ERR( "Failed to run %s\n", debugstr_w(cmdline) );
return FALSE;
}
Wow64RevertWow64FsRedirection( redir );
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
return TRUE;
......
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