[ros-diffs] [weiden] 13147: wrap access to foreign Peb with SEH
weiden at svn.reactos.com
weiden at svn.reactos.com
Thu Jan 20 01:31:54 CET 2005
wrap access to foreign Peb with SEH
Modified: trunk/reactos/ntoskrnl/ps/process.c
_____
Modified: trunk/reactos/ntoskrnl/ps/process.c
--- trunk/reactos/ntoskrnl/ps/process.c 2005-01-20 00:14:50 UTC (rev
13146)
+++ trunk/reactos/ntoskrnl/ps/process.c 2005-01-20 00:31:52 UTC (rev
13147)
@@ -1720,7 +1720,15 @@
process so we're sure we're in the right
context! */
KeAttachProcess(&Process->Pcb);
- Process->Peb->BeingDebugged = TRUE;
+ _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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050120/731dc858/attachment.html
More information about the Ros-diffs
mailing list