wininet: Fixed handling empty string password.
This commit is contained in:
parent
a83a817ad0
commit
9b65e5744f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue