Alexandre Julliard : sspicli: Build with msvcrt.
Alexandre Julliard
julliard at winehq.org
Fri Jun 21 16:44:17 CDT 2019
Module: wine
Branch: master
Commit: bb12daf2b09c668b79eabee803746c7609379791
URL: https://source.winehq.org/git/wine.git/?a=commit;h=bb12daf2b09c668b79eabee803746c7609379791
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Jun 21 08:48:56 2019 +0200
sspicli: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/sspicli/Makefile.in | 2 ++
dlls/sspicli/main.c | 11 +++++------
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/dlls/sspicli/Makefile.in b/dlls/sspicli/Makefile.in
index ceef844..7e0493f 100644
--- a/dlls/sspicli/Makefile.in
+++ b/dlls/sspicli/Makefile.in
@@ -1,4 +1,6 @@
MODULE = sspicli.dll
+EXTRADLLFLAGS = -mno-cygwin
+
C_SRCS = \
main.c
diff --git a/dlls/sspicli/main.c b/dlls/sspicli/main.c
index dfcc1cc..186a6ac 100644
--- a/dlls/sspicli/main.c
+++ b/dlls/sspicli/main.c
@@ -25,7 +25,6 @@
#include "wincred.h"
#include "wine/debug.h"
-#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(sspicli);
@@ -45,9 +44,9 @@ SECURITY_STATUS SEC_ENTRY SspiEncodeStringsAsAuthIdentity(
if (!username && !domainname && !creds) return SEC_E_INVALID_TOKEN;
- if (username) len_username = strlenW( username );
- if (domainname) len_domainname = strlenW( domainname );
- if (creds) len_password = strlenW( creds );
+ if (username) len_username = lstrlenW( username );
+ if (domainname) len_domainname = lstrlenW( domainname );
+ if (creds) len_password = lstrlenW( creds );
size = sizeof(*id);
if (username) size += (len_username + 1) * sizeof(WCHAR);
@@ -101,8 +100,8 @@ static inline WCHAR *strdupW( const WCHAR *src )
{
WCHAR *dst;
if (!src) return NULL;
- if ((dst = HeapAlloc( GetProcessHeap(), 0, (strlenW( src ) + 1) * sizeof(WCHAR) )))
- strcpyW( dst, src );
+ if ((dst = HeapAlloc( GetProcessHeap(), 0, (lstrlenW( src ) + 1) * sizeof(WCHAR) )))
+ lstrcpyW( dst, src );
return dst;
}
More information about the wine-cvs
mailing list