https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3dc4d408b2d04cb953c73…
commit 3dc4d408b2d04cb953c7361a9ad5b428f77c4669
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Apr 29 12:33:14 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Apr 29 12:33:14 2018 +0200
[SDK] Enforce callback type for KdRosRegisterCliCallback(),
KdRosDeregisterCliCallback().
---
sdk/include/reactos/kdros.h | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/sdk/include/reactos/kdros.h b/sdk/include/reactos/kdros.h
index 30d85b64e6..50ede783eb 100644
--- a/sdk/include/reactos/kdros.h
+++ b/sdk/include/reactos/kdros.h
@@ -46,10 +46,18 @@ KdRosDumpStackFrames(
}
#if defined(KDBG)
+typedef
+BOOLEAN
+(NTAPI KDBG_CLI_ROUTINE)(
+ IN PCHAR Command,
+ IN ULONG Argc,
+ IN PCH Argv[]);
+typedef KDBG_CLI_ROUTINE *PKDBG_CLI_ROUTINE;
+
FORCEINLINE
ULONG
KdRosRegisterCliCallback(
- PVOID Callback)
+ PKDBG_CLI_ROUTINE Callback)
{
return KdSystemDebugControl('RbdK', Callback, FALSE, 0, 0, 0, 0);
}
@@ -57,7 +65,7 @@ KdRosRegisterCliCallback(
FORCEINLINE
VOID
KdRosDeregisterCliCallback(
- PVOID Callback)
+ PKDBG_CLI_ROUTINE Callback)
{
KdSystemDebugControl('RbdK', Callback, TRUE, 0, 0, 0, 0);
}