wininet: Set secure flag when scheme is https.

Hans Leidekker hans at codeweavers.com
Mon Dec 8 05:35:32 CST 2008


Fixes http://bugs.winehq.org/show_bug.cgi?id=11444

 -Hans

diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index ed92536..c34dee2 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -2844,6 +2844,8 @@ static HINTERNET INTERNET_InternetOpenUrlW(LPWININETAPPINFOW hIC, LPCWSTR lpszUr
 	    else
 		urlComponents.nPort = INTERNET_DEFAULT_HTTPS_PORT;
 	}
+    if (urlComponents.nScheme == INTERNET_SCHEME_HTTPS) dwFlags |= INTERNET_FLAG_SECURE;
+
         /* FIXME: should use pointers, not handles, as handles are not thread-safe */
 	client = HTTP_Connect(hIC, hostName, urlComponents.nPort,
 			      userName, password, dwFlags, dwContext, INET_OPENURL);



More information about the wine-patches mailing list