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
1 changed files with 4 additions and 0 deletions

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