From 3dc4d408b2d04cb953c7361a9ad5b428f77c4669 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 29 Apr 2018 12:33:14 +0200 Subject: [PATCH] [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 30d85b64e67..50ede783eba 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); }