ntdll: Implement NtSetInformationProcess for ProcessDefaultHardErrorMode.

This commit is contained in:
Juan Lang 2010-04-22 09:33:28 -07:00 committed by Alexandre Julliard
parent 9cb3664bb7
commit a4331aaf5d

View file

@ -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))