https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8b6e441a6e534c6b5ecf5…
commit 8b6e441a6e534c6b5ecf52023b65cfd70e446e3a
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sun Mar 29 00:30:53 2020 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Mon Mar 30 15:23:25 2020 +0200
[NTOS:KD] Fix compilation with CMAKE_BUILD_TYPE=Release
This was broken by commit a890fc64d17e7c4a09a3cbe24e0dfc972d743dda
---
ntoskrnl/kd/kdio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ntoskrnl/kd/kdio.c b/ntoskrnl/kd/kdio.c
index 4921d6af7c2..52dd45b7ccd 100644
--- a/ntoskrnl/kd/kdio.c
+++ b/ntoskrnl/kd/kdio.c
@@ -626,6 +626,7 @@ KdpPromptString(
_In_ PSTRING PromptString,
_In_ PSTRING ResponseString)
{
+#ifdef KDBG
KIRQL OldIrql;
STRING StringChar;
CHAR Response;
@@ -720,6 +721,7 @@ KdpPromptString(
/* Print a new line */
*StringChar.Buffer = '\n';
KdpPrintString(&StringChar);
+#endif
/* Success; we don't need to resend */
return FALSE;