wininet: Fixed handling empty string password.

This commit is contained in:
Jacek Caban 2009-02-10 16:29:11 +01:00 committed by Alexandre Julliard
parent a83a817ad0
commit 9b65e5744f
1 changed files with 1 additions and 1 deletions

View File

@ -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;