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.
From: Paul Gofman pgofman@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) {
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.
This merge request was approved by Hans Leidekker.