[NTOS:EX] Implement NtSystemDebugControl: SysDbgGetPrintBufferSize

This commit is contained in:
Hervé Poussineau 2024-09-22 21:42:21 +02:00 committed by Hermès Bélusca-Maïto
parent 4dc0e5cc81
commit 734a043b22
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -319,6 +319,18 @@ NtSystemDebugControl(
break;
case SysDbgGetPrintBufferSize:
if (OutputBufferLength != sizeof(ULONG))
{
Status = STATUS_INFO_LENGTH_MISMATCH;
}
else
{
/* Return buffer size only if KD is enabled */
*(PULONG)OutputBuffer = KdPitchDebugger ? 0 : KdPrintBufferSize;
Status = STATUS_SUCCESS;
}
break;
case SysDbgSetPrintBufferSize:
case SysDbgGetKdUmExceptionEnable:
case SysDbgSetKdUmExceptionEnable: