From 9cb3664bb774605b1446a956ae454d05516a8338 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Fri, 14 May 2010 13:20:03 -0700 Subject: [PATCH] ntdll: Implement NtQueryInformationProcess for ProcessDefaultHardErrorMode. --- dlls/ntdll/process.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 */ -- 2.11.4.GIT