From 9f97f0b2844695889c061068de648b5e5f80e3e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sun, 22 Sep 2024 21:38:35 +0200 Subject: [PATCH] [NTOS:KD64] Implement KdSystemDebugControl: SysDbgQueryVersion --- ntoskrnl/kd64/kdapi.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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: