https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b2294b4c84b025b2e6f0a…
commit b2294b4c84b025b2e6f0a6dc6cb3210aae1944a6
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Thu Aug 31 17:09:30 2023 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Aug 31 17:10:34 2023 +0200
[NTOS:KD] Fix release builds.
---
ntoskrnl/kd/kdio.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/ntoskrnl/kd/kdio.c b/ntoskrnl/kd/kdio.c
index 1a9c4c5fbb4..cfaa0d46875 100644
--- a/ntoskrnl/kd/kdio.c
+++ b/ntoskrnl/kd/kdio.c
@@ -593,8 +593,9 @@ KdIoPrintf(
KdIoPrintString(Buffer, Length);
}
-
+#ifdef KDBG
extern const CSTRING KdbPromptStr;
+#endif
VOID
NTAPI
@@ -645,9 +646,11 @@ KdReceivePacket(
_Out_ PULONG DataLength,
_Inout_ PKD_CONTEXT Context)
{
+#ifdef KDBG
PDBGKD_DEBUG_IO DebugIo;
STRING ResponseString;
CHAR MessageBuffer[512];
+#endif
if (PacketType != PACKET_TYPE_KD_DEBUG_IO)
{
@@ -655,6 +658,7 @@ KdReceivePacket(
return KdPacketTimedOut;
}
+#ifdef KDBG
DebugIo = (PDBGKD_DEBUG_IO)MessageHeader->Buffer;
/* Validate API call */
@@ -703,6 +707,7 @@ KdReceivePacket(
/* Only now we can copy back the data into MessageData->Buffer */
RtlCopyMemory(MessageData->Buffer, ResponseString.Buffer, *DataLength);
+#endif
return KdPacketReceived;
}