https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9f97f0b2844695889c061068de648b5e5f80e3e5

commit 9f97f0b2844695889c061068de648b5e5f80e3e5
Author:     Hervé Poussineau <hpous...@reactos.org>
AuthorDate: Sun Sep 22 21:38:35 2024 +0200
Commit:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
CommitDate: Tue Jan 28 22:00:40 2025 +0100

    [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:

Reply via email to