Module: wine Branch: master Commit: 3c43a6568fc3d25d9bbebe2350eb747fe3c1dfeb URL: http://source.winehq.org/git/wine.git/?a=commit;h=3c43a6568fc3d25d9bbebe2350...
Author: Hans Leidekker hans@meelstraat.net Date: Sat Aug 2 23:21:54 2008 +0200
wininet: Properly initialize access type when no proxy is configured.
---
dlls/wininet/internet.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index a306fd2..d06298f 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); }