netapi32: Return the length in characters not bytes.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
537e20e041
commit
8a02f6dd0a
|
@ -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 )
|
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 );
|
return ntdll_umbstowcs( src, strlen( src ) + 1, dst, dstlen );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue