projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6994c47
)
msvc6 warning fix - cast return value of SHAlloc()
author
Royce Mitchell III
<royce3@ev1.net>
Mon, 12 Sep 2005 20:07:29 +0000
(20:07 +0000)
committer
Royce Mitchell III
<royce3@ev1.net>
Mon, 12 Sep 2005 20:07:29 +0000
(20:07 +0000)
svn path=/trunk/; revision=17824
reactos/lib/shell32/shell32_main.h
patch
|
blob
|
history
diff --git
a/reactos/lib/shell32/shell32_main.h
b/reactos/lib/shell32/shell32_main.h
index
996b578
..
c66a535
100644
(file)
--- 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);
}