From: Tim Clem tclem@codeweavers.com
Otherwise we will return success while potentially leaving them with garbage values, which the caller is likely to close. --- dlls/ntdll/unix/process.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/ntdll/unix/process.c b/dlls/ntdll/unix/process.c index 5d899338a20..3321640ba97 100644 --- a/dlls/ntdll/unix/process.c +++ b/dlls/ntdll/unix/process.c @@ -752,6 +752,7 @@ NTSTATUS WINAPI NtCreateUserProcess( HANDLE *process_handle_ptr, HANDLE *thread_ { if (status == STATUS_INVALID_IMAGE_NOT_MZ && !fork_and_exec( &attr, unix_name, unixdir, params )) { + *process_handle_ptr = *thread_handle_ptr = 0; memset( info, 0, sizeof(*info) ); free( unix_name ); free( nt_name.Buffer );