Commit a4331aaf authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

ntdll: Implement NtSetInformationProcess for ProcessDefaultHardErrorMode.

parent 9cb3664b
......@@ -440,6 +440,10 @@ NTSTATUS WINAPI NtSetInformationProcess(
switch (ProcessInformationClass)
{
case ProcessDefaultHardErrorMode:
if (ProcessInformationLength != sizeof(UINT)) return STATUS_INVALID_PARAMETER;
process_error_mode = *(UINT *)ProcessInformation;
break;
case ProcessAffinityMask:
if (ProcessInformationLength != sizeof(DWORD_PTR)) return STATUS_INVALID_PARAMETER;
if (*(PDWORD_PTR)ProcessInformation & ~(((DWORD_PTR)1 << NtCurrentTeb()->Peb->NumberOfProcessors) - 1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment