mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
wrap access to foreign Peb with SEH
svn path=/trunk/; revision=13147
This commit is contained in:
parent
cfdf8abfca
commit
d6628e3e23
1 changed files with 9 additions and 1 deletions
|
@ -1720,7 +1720,15 @@ NtSetInformationProcess(IN HANDLE ProcessHandle,
|
|||
process so we're sure we're in the right context! */
|
||||
|
||||
KeAttachProcess(&Process->Pcb);
|
||||
_SEH_TRY
|
||||
{
|
||||
Process->Peb->BeingDebugged = TRUE;
|
||||
}
|
||||
_SEH_HANDLE
|
||||
{
|
||||
DPRINT1("Trying to set the Peb->BeingDebugged field of process 0x%x failed, exception: 0x%x\n", Process, _SEH_GetExceptionCode());
|
||||
}
|
||||
_SEH_END;
|
||||
KeDetachProcess();
|
||||
}
|
||||
Status = STATUS_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue