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:
Huw Davies 2021-12-02 07:46:17 +00:00 committed by Alexandre Julliard
parent 537e20e041
commit 8a02f6dd0a

View file

@ -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 );
}