From 76dc59573264445be43d21f6fbef2c38456ce537 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 30 May 2010 14:02:47 +0000 Subject: [PATCH] [DDK] Cast the string parameter of ASSERTMSG to PCHAR to allow passing string constants which are PCCHAR without a warning. svn path=/trunk/; revision=47443 --- reactos/include/ddk/wdm.h | 2 +- reactos/include/xdk/rtlfuncs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/include/ddk/wdm.h b/reactos/include/ddk/wdm.h index 3a523235742..af239bbb4c3 100644 --- a/reactos/include/ddk/wdm.h +++ b/reactos/include/ddk/wdm.h @@ -9459,7 +9459,7 @@ RtlCheckBit( #define ASSERTMSG(msg, exp) \ (VOID)((!(exp)) ? \ - RtlAssert( (PVOID)#exp, (PVOID)__FILE__, __LINE__, msg ), FALSE : TRUE) + RtlAssert( (PVOID)#exp, (PVOID)__FILE__, __LINE__, (PCHAR)msg ), FALSE : TRUE) #define RTL_SOFT_ASSERT(exp) \ (VOID)((!(exp)) ? \ diff --git a/reactos/include/xdk/rtlfuncs.h b/reactos/include/xdk/rtlfuncs.h index a5302dcea9f..ee7742c2f94 100644 --- a/reactos/include/xdk/rtlfuncs.h +++ b/reactos/include/xdk/rtlfuncs.h @@ -1858,7 +1858,7 @@ RtlCheckBit( #define ASSERTMSG(msg, exp) \ (VOID)((!(exp)) ? \ - RtlAssert( (PVOID)#exp, (PVOID)__FILE__, __LINE__, msg ), FALSE : TRUE) + RtlAssert( (PVOID)#exp, (PVOID)__FILE__, __LINE__, (PCHAR)msg ), FALSE : TRUE) #define RTL_SOFT_ASSERT(exp) \ (VOID)((!(exp)) ? \ -- 2.17.1