mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
msvc6 warning fix - cast return value of SHAlloc()
svn path=/trunk/; revision=17824
This commit is contained in:
parent
6994c4711b
commit
da407213dc
1 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ inline static BOOL SHELL_OsIsUnicode(void)
|
||||||
};
|
};
|
||||||
inline static void __SHCloneStrA(char ** target,const char * source)
|
inline static void __SHCloneStrA(char ** target,const char * source)
|
||||||
{
|
{
|
||||||
*target = SHAlloc(strlen(source)+1);
|
*target = (char*)SHAlloc(strlen(source)+1);
|
||||||
strcpy(*target, source);
|
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)
|
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);
|
strcpyW(*target, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue