[PATCH 0/1] MR8276: wbemprox: Pass current directory correctly to CreateProcessW() in process_create().
Now that is passed as environment block variable. Which generally works but not very well. Fixes environment variables being stripped of in games started by FunCom launcher. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8276
From: Paul Gofman <pgofman(a)codeweavers.com> --- dlls/wbemprox/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wbemprox/process.c b/dlls/wbemprox/process.c index 0fdd9340d16..195fc3952df 100644 --- a/dlls/wbemprox/process.c +++ b/dlls/wbemprox/process.c @@ -162,8 +162,8 @@ HRESULT process_create( IWbemClassObject *obj, IWbemContext *context, IWbemClass if (V_VT( &command_line ) == VT_BSTR && V_BSTR( &command_line )) { bret = CreateProcessW( NULL, V_BSTR( &command_line ), NULL, NULL, FALSE, 0L, - V_VT( ¤t_directory ) == VT_BSTR ? V_BSTR( ¤t_directory ) : NULL, - NULL, &si, &pi ); + NULL, V_VT( ¤t_directory ) == VT_BSTR ? V_BSTR( ¤t_directory ) : NULL, + &si, &pi ); TRACE( "CreateProcessW ret %d, GetLastError() %lu\n", bret, GetLastError() ); if (bret) { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8276
While quite likely a process created through WMI shouldn't be inheriting creating process environment on Windows and should be basing its environment on something else, I guess it is orthogonal to this patch. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8276#note_106167
This merge request was approved by Hans Leidekker. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8276
participants (3)
-
Hans Leidekker (@hans) -
Paul Gofman -
Paul Gofman (@gofman)