[FASTFAT] Use KdRosRegisterCliCallback() to register in KDBG.

This commit is contained in:
Pierre Schweitzer 2018-04-29 12:23:18 +02:00
parent de88611590
commit fd8197645f
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -30,21 +30,16 @@
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
#ifdef KDBG
#include <ndk/kdfuncs.h>
#include <reactos/kdros.h>
#endif
#if defined(ALLOC_PRAGMA) #if defined(ALLOC_PRAGMA)
#pragma alloc_text(INIT, DriverEntry) #pragma alloc_text(INIT, DriverEntry)
#endif #endif
#ifdef KDBG #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 BOOLEAN
NTAPI NTAPI
vfatKdbgHandler( vfatKdbgHandler(
@ -160,7 +155,7 @@ DriverEntry(
{ {
BOOLEAN Registered; BOOLEAN Registered;
Registered = KdSystemDebugControl('RbdK', vfatKdbgHandler, FALSE, NULL, 0, NULL, KernelMode); Registered = KdRosRegisterCliCallback(vfatKdbgHandler);
DPRINT1("FastFAT KDBG extension registered: %s\n", (Registered ? "yes" : "no")); DPRINT1("FastFAT KDBG extension registered: %s\n", (Registered ? "yes" : "no"));
} }
#endif #endif