https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b97d5fd2f70f7685d0001…
commit b97d5fd2f70f7685d000148670eae0cbbbee0333
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Wed Apr 28 15:58:01 2021 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Apr 28 15:58:01 2021 +0200
[NTOS:KDBG] Fix invalid DBG print
---
ntoskrnl/kdbg/kdb_cli.c | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/ntoskrnl/kdbg/kdb_cli.c b/ntoskrnl/kdbg/kdb_cli.c
index 01473e99b0d..ac43b48c5e1 100644
--- a/ntoskrnl/kdbg/kdb_cli.c
+++ b/ntoskrnl/kdbg/kdb_cli.c
@@ -1802,21 +1802,23 @@ KdbpCmdThread(
" Stack Base: 0x%08x\n"
" Kernel Stack: 0x%08x\n"
" Trap Frame: 0x%08x\n"
- " NPX State: %s (0x%x)\n",
- (Argc < 2) ? "Current Thread:\n" : "",
- Thread->Cid.UniqueThread,
- State, Thread->Tcb.State,
- Thread->Tcb.Priority,
- Thread->Tcb.Affinity,
- Thread->Tcb.InitialStack,
- Thread->Tcb.StackLimit,
- Thread->Tcb.StackBase,
- Thread->Tcb.KernelStack,
- Thread->Tcb.TrapFrame
+#ifndef _M_AMD64
+ " NPX State: %s (0x%x)\n"
+#endif
+ , (Argc < 2) ? "Current Thread:\n" : ""
+ , Thread->Cid.UniqueThread
+ , State, Thread->Tcb.State
+ , Thread->Tcb.Priority
+ , Thread->Tcb.Affinity
+ , Thread->Tcb.InitialStack
+ , Thread->Tcb.StackLimit
+ , Thread->Tcb.StackBase
+ , Thread->Tcb.KernelStack
+ , Thread->Tcb.TrapFrame
#ifndef _M_AMD64
, NPX_STATE_TO_STRING(Thread->Tcb.NpxState),
Thread->Tcb.NpxState
#endif
-);
+ );
/* Release our reference if we had one */
if (ReferencedThread)