Commit ee779407 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msvcrt: Use size_t for the size in wcsdup().

parent bca9df8d
...@@ -79,7 +79,7 @@ wchar_t* CDECL _wcsdup( const wchar_t* str ) ...@@ -79,7 +79,7 @@ wchar_t* CDECL _wcsdup( const wchar_t* str )
wchar_t* ret = NULL; wchar_t* ret = NULL;
if (str) if (str)
{ {
int size = (wcslen(str) + 1) * sizeof(wchar_t); size_t size = (wcslen(str) + 1) * sizeof(wchar_t);
ret = malloc( size ); ret = malloc( size );
if (ret) memcpy( ret, str, size ); if (ret) memcpy( ret, str, size );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment