From 58e30bca68cc8a40a2c6a3dea269884469dc7921 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 30 Nov 2021 12:54:01 +0100 Subject: [PATCH] netapi32: Use the ntdll Unicode string functions instead of wine/unicode.h. Signed-off-by: Alexandre Julliard --- dlls/netapi32/unixlib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/netapi32/unixlib.c b/dlls/netapi32/unixlib.c index 8d61774b7d7..23881b470d9 100644 --- a/dlls/netapi32/unixlib.c +++ b/dlls/netapi32/unixlib.c @@ -42,7 +42,6 @@ #include "winternl.h" #include "lm.h" #include "wine/debug.h" -#include "wine/unicode.h" #include "unixlib.h" @@ -67,8 +66,8 @@ static NET_API_STATUS (*pNetWkstaGetInfo)( const char *, unsigned int, unsigned static DWORD netapi_wcstoumbs( const WCHAR *src, char *dst, DWORD dstlen ) { - if (!dst) return 3 * strlenW( src ) + 1; - return ntdll_wcstoumbs( src, strlenW( src ) + 1, dst, dstlen, FALSE ); + if (!dst) return 3 * wcslen( src ) + 1; + return ntdll_wcstoumbs( src, wcslen( src ) + 1, dst, dstlen, FALSE ); } static DWORD netapi_umbstowcs( const char *src, WCHAR *dst, DWORD dstlen )