[PATCH 0/1] MR10832: kernelbase: Run conhost.exe from c:\windows\system32 directory.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59722 Currently conhost.exe runs with the current directory inherited by the parent process. Therefore that directory gets locked by conhost.exe, which interferes with the parents RemoveDirectory calls. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10832
From: Bernhard Übelacker <bernhardu@mailbox.org> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59722 --- dlls/kernelbase/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/kernelbase/console.c b/dlls/kernelbase/console.c index de6a71ec29a..f980597bd64 100644 --- a/dlls/kernelbase/console.c +++ b/dlls/kernelbase/console.c @@ -473,7 +473,7 @@ static BOOL alloc_console( BOOL headless ) if (headless) wcscat( cmd, L" --headless" ); Wow64DisableWow64FsRedirection( &redir ); ret = CreateProcessW( conhost_path, cmd, NULL, NULL, TRUE, DETACHED_PROCESS | EXTENDED_STARTUPINFO_PRESENT, - NULL, NULL, &console_si.StartupInfo, &pi ); + NULL, system_dir, &console_si.StartupInfo, &pi ); Wow64RevertWow64FsRedirection( redir ); if (!ret || !create_console_connection( console)) goto error; @@ -2253,7 +2253,7 @@ static HANDLE create_pseudo_console( COORD size, HANDLE input, HANDLE output, HA } Wow64DisableWow64FsRedirection( &redir ); res = CreateProcessW( conhost_path, cmd, NULL, NULL, TRUE, DETACHED_PROCESS | EXTENDED_STARTUPINFO_PRESENT, - NULL, NULL, &si.StartupInfo, &pi ); + NULL, system_dir, &si.StartupInfo, &pi ); HeapFree( GetProcessHeap(), 0, si.lpAttributeList ); Wow64RevertWow64FsRedirection( redir ); NtClose( server ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10832
This merge request was approved by Joel Holdsworth. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10832
participants (3)
-
Bernhard Übelacker -
Bernhard Übelacker (@bernhardu) -
Joel Holdsworth (@jhol)