[ros-diffs] [royce] 17824: msvc6 warning fix - cast return value of
SHAlloc()
royce at svn.reactos.com
royce at svn.reactos.com
Mon Sep 12 22:07:36 CEST 2005
msvc6 warning fix - cast return value of SHAlloc()
Modified: trunk/reactos/lib/shell32/shell32_main.h
_____
Modified: trunk/reactos/lib/shell32/shell32_main.h
--- trunk/reactos/lib/shell32/shell32_main.h 2005-09-12 20:04:49 UTC
(rev 17823)
+++ trunk/reactos/lib/shell32/shell32_main.h 2005-09-12 20:07:29 UTC
(rev 17824)
@@ -179,7 +179,7 @@
};
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 __SHCloneStrW(WCHAR ** target, const WCHAR * source)
{
- *target = SHAlloc( (strlenW(source)+1) * sizeof(WCHAR) );
+ *target = (WCHAR*)SHAlloc( (strlenW(source)+1) * sizeof(WCHAR)
);
strcpyW(*target, source);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050912/e70eb735/attachment.html
More information about the Ros-diffs
mailing list