From 3c43a6568fc3d25d9bbebe2350eb747fe3c1dfeb Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Sat, 2 Aug 2008 23:21:54 +0200 Subject: [PATCH] wininet: Properly initialize access type when no proxy is configured. --- dlls/wininet/internet.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index a306fd2d5df..d06298f5cfc 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -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); } -- 2.11.4.GIT