From da407213dcda218eec5ddf02bebd5e103b7ddcbe Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Mon, 12 Sep 2005 20:07:29 +0000 Subject: [PATCH] msvc6 warning fix - cast return value of SHAlloc() svn path=/trunk/; revision=17824 --- reactos/lib/shell32/shell32_main.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/shell32/shell32_main.h b/reactos/lib/shell32/shell32_main.h index 996b5781760..c66a5356d1b 100644 --- a/reactos/lib/shell32/shell32_main.h +++ b/reactos/lib/shell32/shell32_main.h @@ -179,7 +179,7 @@ inline static BOOL SHELL_OsIsUnicode(void) }; inline static void __SHCloneStrA(char ** target,const char * source) { - *target = SHAlloc(strlen(source)+1); + *target = (char*)SHAlloc(strlen(source)+1); strcpy(*target, source); } @@ -192,7 +192,7 @@ inline static void __SHCloneStrWtoA(char ** target, const WCHAR * source) inline static void __SHCloneStrW(WCHAR ** target, const WCHAR * source) { - *target = SHAlloc( (strlenW(source)+1) * sizeof(WCHAR) ); + *target = (WCHAR*)SHAlloc( (strlenW(source)+1) * sizeof(WCHAR) ); strcpyW(*target, source); }