diff --git a/ntoskrnl/kd64/kdapi.c b/ntoskrnl/kd64/kdapi.c index e2dce3491e6..f604779bc39 100644 --- a/ntoskrnl/kd64/kdapi.c +++ b/ntoskrnl/kd64/kdapi.c @@ -2291,6 +2291,17 @@ KdSystemDebugControl( switch (Command) { case SysDbgQueryVersion: + if (OutputBufferLength != sizeof(DBGKD_GET_VERSION64)) + { + Status = STATUS_INFO_LENGTH_MISMATCH; + } + else + { + KdpSysGetVersion((PDBGKD_GET_VERSION64)OutputBuffer); + Status = STATUS_SUCCESS; + } + break; + case SysDbgReadVirtual: case SysDbgWriteVirtual: case SysDbgReadPhysical: