mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[NTOS:EX] Implement NtSystemDebugControl: SysDbgGetKdUmExceptionEnable/SysDbgSetKdUmExceptionEnable
This commit is contained in:
parent
734a043b22
commit
d4546753f6
1 changed files with 32 additions and 0 deletions
|
@ -332,8 +332,40 @@ NtSystemDebugControl(
|
|||
break;
|
||||
|
||||
case SysDbgSetPrintBufferSize:
|
||||
UNIMPLEMENTED;
|
||||
Status = STATUS_NOT_IMPLEMENTED;
|
||||
break;
|
||||
|
||||
case SysDbgGetKdUmExceptionEnable:
|
||||
if (OutputBufferLength != sizeof(BOOLEAN))
|
||||
{
|
||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Unfortunately, the internal flag says if UM exceptions are disabled */
|
||||
*(PBOOLEAN)OutputBuffer = !KdIgnoreUmExceptions;
|
||||
Status = STATUS_SUCCESS;
|
||||
}
|
||||
break;
|
||||
|
||||
case SysDbgSetKdUmExceptionEnable:
|
||||
if (InputBufferLength != sizeof(BOOLEAN))
|
||||
{
|
||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||
}
|
||||
else if (KdPitchDebugger)
|
||||
{
|
||||
Status = STATUS_ACCESS_DENIED;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Unfortunately, the internal flag says if UM exceptions are disabled */
|
||||
KdIgnoreUmExceptions = !*(PBOOLEAN)InputBuffer;
|
||||
Status = STATUS_SUCCESS;
|
||||
}
|
||||
break;
|
||||
|
||||
case SysDbgGetTriageDump:
|
||||
case SysDbgGetKdBlockEnable:
|
||||
case SysDbgSetKdBlockEnable:
|
||||
|
|
Loading…
Reference in a new issue