Alexandre Julliard : netapi32: Use the ntdll Unicode string functions instead of wine/unicode.h.

Alexandre Julliard julliard at winehq.org
Tue Nov 30 16:18:50 CST 2021


Module: wine
Branch: master
Commit: 58e30bca68cc8a40a2c6a3dea269884469dc7921
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=58e30bca68cc8a40a2c6a3dea269884469dc7921

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Nov 30 12:54:01 2021 +0100

netapi32: Use the ntdll Unicode string functions instead of wine/unicode.h.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 )




More information about the wine-cvs mailing list