Module: wine Branch: master Commit: 9b65e5744f5b71e6482632d9045d0bd2c35ac6f8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9b65e5744f5b71e6482632d904...
Author: Jacek Caban jacek@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;