https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fd8197645f583d58fcc7e…
commit fd8197645f583d58fcc7e63267872be2e08a63fb
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Apr 29 12:23:18 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Apr 29 12:23:18 2018 +0200
[FASTFAT] Use KdRosRegisterCliCallback() to register in KDBG.
---
drivers/filesystems/fastfat/iface.c | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/drivers/filesystems/fastfat/iface.c b/drivers/filesystems/fastfat/iface.c
index b73854dbcd..903b1af3d6 100644
--- a/drivers/filesystems/fastfat/iface.c
+++ b/drivers/filesystems/fastfat/iface.c
@@ -30,21 +30,16 @@
#define NDEBUG
#include <debug.h>
+#ifdef KDBG
+#include <ndk/kdfuncs.h>
+#include <reactos/kdros.h>
+#endif
+
#if defined(ALLOC_PRAGMA)
#pragma alloc_text(INIT, DriverEntry)
#endif
#ifdef KDBG
-NTSTATUS
-NTAPI
-KdSystemDebugControl(IN ULONG Command,
- IN PVOID InputBuffer,
- IN ULONG InputBufferLength,
- OUT PVOID OutputBuffer,
- IN ULONG OutputBufferLength,
- IN OUT PULONG ReturnLength,
- IN KPROCESSOR_MODE PreviousMode);
-
BOOLEAN
NTAPI
vfatKdbgHandler(
@@ -160,7 +155,7 @@ DriverEntry(
{
BOOLEAN Registered;
- Registered = KdSystemDebugControl('RbdK', vfatKdbgHandler, FALSE, NULL,
0, NULL, KernelMode);
+ Registered = KdRosRegisterCliCallback(vfatKdbgHandler);
DPRINT1("FastFAT KDBG extension registered: %s\n", (Registered ?
"yes" : "no"));
}
#endif