Skip to content

Commit 9f97f0b

Browse files
hpoussinHBelusca
authored andcommitted
[NTOS:KD64] Implement KdSystemDebugControl: SysDbgQueryVersion
1 parent 6338d51 commit 9f97f0b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ntoskrnl/kd64/kdapi.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,6 +2291,17 @@ KdSystemDebugControl(
22912291
switch (Command)
22922292
{
22932293
case SysDbgQueryVersion:
2294+
if (OutputBufferLength != sizeof(DBGKD_GET_VERSION64))
2295+
{
2296+
Status = STATUS_INFO_LENGTH_MISMATCH;
2297+
}
2298+
else
2299+
{
2300+
KdpSysGetVersion((PDBGKD_GET_VERSION64)OutputBuffer);
2301+
Status = STATUS_SUCCESS;
2302+
}
2303+
break;
2304+
22942305
case SysDbgReadVirtual:
22952306
case SysDbgWriteVirtual:
22962307
case SysDbgReadPhysical:

0 commit comments

Comments
 (0)