wininet: Properly initialize access type when no proxy is configured.

This commit is contained in:
Hans Leidekker 2008-08-02 23:21:54 +02:00 committed by Alexandre Julliard
parent daa2fdfccb
commit 3c43a6568f
1 changed files with 5 additions and 2 deletions

View File

@ -410,8 +410,11 @@ static BOOL INTERNET_ConfigureProxy( LPWININETAPPINFOW lpwai )
TRACE("http proxy (from environment) = %s\n", debugstr_w(lpwai->lpszProxy));
enabled = 1;
}
if (!enabled) TRACE("Proxy is not enabled.\n");
if (!enabled)
{
TRACE("Proxy is not enabled.\n");
lpwai->dwAccessType = INTERNET_OPEN_TYPE_DIRECT;
}
RegCloseKey( key );
return (enabled > 0);
}