We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dc0e5c commit 734a043Copy full SHA for 734a043
ntoskrnl/ex/dbgctrl.c
@@ -319,6 +319,18 @@ NtSystemDebugControl(
319
break;
320
321
case SysDbgGetPrintBufferSize:
322
+ if (OutputBufferLength != sizeof(ULONG))
323
+ {
324
+ Status = STATUS_INFO_LENGTH_MISMATCH;
325
+ }
326
+ else
327
328
+ /* Return buffer size only if KD is enabled */
329
+ *(PULONG)OutputBuffer = KdPitchDebugger ? 0 : KdPrintBufferSize;
330
+ Status = STATUS_SUCCESS;
331
332
+ break;
333
+
334
case SysDbgSetPrintBufferSize:
335
case SysDbgGetKdUmExceptionEnable:
336
case SysDbgSetKdUmExceptionEnable:
0 commit comments