Commit 8f2f59ee authored by Alexandre Julliard's avatar Alexandre Julliard

regedit: 64-bit regedit.exe is in c:\windows.

parent 8d076bc5
......@@ -148,15 +148,14 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
if (IsWow64Process( GetCurrentProcess(), &is_wow64 ) && is_wow64)
{
static const WCHAR filename[] = L"C:\\windows\\regedit.exe";
STARTUPINFOW si;
PROCESS_INFORMATION pi;
WCHAR filename[MAX_PATH];
void *redir;
DWORD exit_code;
memset( &si, 0, sizeof(si) );
si.cb = sizeof(si);
GetModuleFileNameW( 0, filename, MAX_PATH );
Wow64DisableWow64FsRedirection( &redir );
if (CreateProcessW( filename, GetCommandLineW(), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi ))
......
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