Commit 8a02f6dd authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

netapi32: Return the length in characters not bytes.

parent 537e20e0
......@@ -72,7 +72,7 @@ static DWORD netapi_wcstoumbs( const WCHAR *src, char *dst, DWORD dstlen )
static DWORD netapi_umbstowcs( const char *src, WCHAR *dst, DWORD dstlen )
{
if (!dst) return (strlen( src ) + 1) * sizeof(WCHAR);
if (!dst) return strlen( src ) + 1;
return ntdll_umbstowcs( src, strlen( src ) + 1, dst, dstlen );
}
......
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