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

Alexandre Julliard julliard at winehq.org
Tue Apr 6 15:50:12 CDT 2021


Module: wine
Branch: master
Commit: 8f2f59eee1ef872e22cd4b578cae49091f50ef9d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8f2f59eee1ef872e22cd4b578cae49091f50ef9d

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Apr  6 10:55:30 2021 +0200

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

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50933
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/regedit/main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/programs/regedit/main.c b/programs/regedit/main.c
index 80f935027e8..df92a13ab69 100644
--- a/programs/regedit/main.c
+++ b/programs/regedit/main.c
@@ -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 ))




More information about the wine-cvs mailing list