Hans Leidekker : kerberos: Build with msvcrt.

Alexandre Julliard julliard at winehq.org
Wed Apr 21 15:57:53 CDT 2021


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Apr 21 09:47:31 2021 +0200

kerberos: Build with msvcrt.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kerberos/Makefile.in | 2 ++
 dlls/kerberos/krb5_ap.c   | 5 ++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/kerberos/Makefile.in b/dlls/kerberos/Makefile.in
index ab5e6b59976..acfd9030955 100644
--- a/dlls/kerberos/Makefile.in
+++ b/dlls/kerberos/Makefile.in
@@ -1,6 +1,8 @@
 MODULE    = kerberos.dll
 EXTRAINCL = $(KRB5_CFLAGS) $(GSSAPI_CFLAGS)
 
+EXTRADLLFLAGS = -mno-cygwin
+
 C_SRCS = \
 	krb5_ap.c \
 	unixlib.c
diff --git a/dlls/kerberos/krb5_ap.c b/dlls/kerberos/krb5_ap.c
index 792ee974983..6e3135a9f02 100644
--- a/dlls/kerberos/krb5_ap.c
+++ b/dlls/kerberos/krb5_ap.c
@@ -34,7 +34,6 @@
 #include "winternl.h"
 #include "wine/heap.h"
 #include "wine/debug.h"
-#include "wine/unicode.h"
 #include "unixlib.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(kerberos);
@@ -397,8 +396,8 @@ static NTSTATUS NTAPI kerberos_SpDeleteContext( LSA_SEC_HANDLE context )
 static SecPkgInfoW *build_package_info( const SecPkgInfoW *info )
 {
     SecPkgInfoW *ret;
-    DWORD size_name = (strlenW(info->Name) + 1) * sizeof(WCHAR);
-    DWORD size_comment = (strlenW(info->Comment) + 1) * sizeof(WCHAR);
+    DWORD size_name = (wcslen(info->Name) + 1) * sizeof(WCHAR);
+    DWORD size_comment = (wcslen(info->Comment) + 1) * sizeof(WCHAR);
 
     if (!(ret = heap_alloc( sizeof(*ret) + size_name + size_comment ))) return NULL;
     ret->fCapabilities = info->fCapabilities;




More information about the wine-cvs mailing list