Commit bb12daf2 authored by Alexandre Julliard's avatar Alexandre Julliard

sspicli: Build with msvcrt.

parent 6128623e
MODULE = sspicli.dll MODULE = sspicli.dll
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \ C_SRCS = \
main.c main.c
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "wincred.h" #include "wincred.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(sspicli); WINE_DEFAULT_DEBUG_CHANNEL(sspicli);
...@@ -45,9 +44,9 @@ SECURITY_STATUS SEC_ENTRY SspiEncodeStringsAsAuthIdentity( ...@@ -45,9 +44,9 @@ SECURITY_STATUS SEC_ENTRY SspiEncodeStringsAsAuthIdentity(
if (!username && !domainname && !creds) return SEC_E_INVALID_TOKEN; if (!username && !domainname && !creds) return SEC_E_INVALID_TOKEN;
if (username) len_username = strlenW( username ); if (username) len_username = lstrlenW( username );
if (domainname) len_domainname = strlenW( domainname ); if (domainname) len_domainname = lstrlenW( domainname );
if (creds) len_password = strlenW( creds ); if (creds) len_password = lstrlenW( creds );
size = sizeof(*id); size = sizeof(*id);
if (username) size += (len_username + 1) * sizeof(WCHAR); if (username) size += (len_username + 1) * sizeof(WCHAR);
...@@ -101,8 +100,8 @@ static inline WCHAR *strdupW( const WCHAR *src ) ...@@ -101,8 +100,8 @@ static inline WCHAR *strdupW( const WCHAR *src )
{ {
WCHAR *dst; WCHAR *dst;
if (!src) return NULL; if (!src) return NULL;
if ((dst = HeapAlloc( GetProcessHeap(), 0, (strlenW( src ) + 1) * sizeof(WCHAR) ))) if ((dst = HeapAlloc( GetProcessHeap(), 0, (lstrlenW( src ) + 1) * sizeof(WCHAR) )))
strcpyW( dst, src ); lstrcpyW( dst, src );
return dst; return dst;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment