diff --git a/dlls/ntdll/process.c b/dlls/ntdll/process.c index f3314299694..2e73c91ca77 100644 --- a/dlls/ntdll/process.c +++ b/dlls/ntdll/process.c @@ -90,6 +90,7 @@ HANDLE CDECL __wine_make_process_system(void) return ret; } +static UINT process_error_mode; #define UNIMPLEMENTED_INFO_CLASS(c) \ case c: \ @@ -126,7 +127,6 @@ NTSTATUS WINAPI NtQueryInformationProcess( UNIMPLEMENTED_INFO_CLASS(ProcessAccessToken); UNIMPLEMENTED_INFO_CLASS(ProcessLdtInformation); UNIMPLEMENTED_INFO_CLASS(ProcessLdtSize); - UNIMPLEMENTED_INFO_CLASS(ProcessDefaultHardErrorMode); UNIMPLEMENTED_INFO_CLASS(ProcessIoPortHandlers); UNIMPLEMENTED_INFO_CLASS(ProcessPooledUsageAndLimits); UNIMPLEMENTED_INFO_CLASS(ProcessWorkingSetWatch); @@ -314,6 +314,13 @@ NTSTATUS WINAPI NtQueryInformationProcess( else ret = STATUS_INFO_LENGTH_MISMATCH; break; + case ProcessDefaultHardErrorMode: + len = sizeof(process_error_mode); + if (ProcessInformationLength == len) + memcpy(ProcessInformation, &process_error_mode, len); + else + ret = STATUS_INFO_LENGTH_MISMATCH; + break; case ProcessDebugObjectHandle: /* "These are not the debuggers you are looking for." * * set it to 0 aka "no debugger" to satisfy copy protections */