https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1bb41672112b3fb34a2ec4903959343ec265a8a5

commit 1bb41672112b3fb34a2ec4903959343ec265a8a5
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Wed Mar 29 03:36:24 2023 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Wed Mar 29 03:36:24 2023 +0200

    [NTOS:KD] Fix build, addendum to commit f3dd7133.
    
    This one was more subtle because the prompt (KdIoReadLine) functionality
    makes a call-back to KDBG own command history getter function 
KdbGetHistoryEntry.
    It is planned for this to become a registered optional callback pointer.
---
 ntoskrnl/kd/kdprompt.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/ntoskrnl/kd/kdprompt.c b/ntoskrnl/kd/kdprompt.c
index 3743ca2b3b2..ec4d7134616 100644
--- a/ntoskrnl/kd/kdprompt.c
+++ b/ntoskrnl/kd/kdprompt.c
@@ -13,6 +13,24 @@
 #include "kd.h"
 #include "kdterminal.h"
 
+/* In kdb.h only when KDBG defined */
+#ifdef KDBG
+extern PCSTR
+KdbGetHistoryEntry(
+    _Inout_ PLONG NextIndex,
+    _In_ BOOLEAN Next);
+#else
+PCSTR
+KdbGetHistoryEntry(
+    _Inout_ PLONG NextIndex,
+    _In_ BOOLEAN Next)
+{
+    /* Dummy function */
+    return NULL;
+}
+#endif
+
+
 /* FUNCTIONS *****************************************************************/
 
 /**

Reply via email to