Jacek Caban : wininet: Fixed handling empty string password.

Alexandre Julliard julliard at winehq.org
Wed Feb 11 09:23:52 CST 2009


Module: wine
Branch: master
Commit: 9b65e5744f5b71e6482632d9045d0bd2c35ac6f8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9b65e5744f5b71e6482632d9045d0bd2c35ac6f8

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Feb 10 16:29:11 2009 +0100

wininet: Fixed handling empty string password.

---

 dlls/wininet/ftp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 83e2b60..62a79df 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -2260,7 +2260,7 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
 
     assert( hIC->hdr.htype == WH_HINIT );
 
-    if ((!lpszUserName || !strlenW(lpszUserName)) && lpszPassword)
+    if ((!lpszUserName || !*lpszUserName) && lpszPassword && *lpszPassword)
     {
 	INTERNET_SetLastError(ERROR_INVALID_PARAMETER);
         goto lerror;




More information about the wine-cvs mailing list