From fff5dca78786060e8c9741fa7d41b153b937be6e Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 31 May 2016 19:42:53 +0200 Subject: [PATCH] wininet: Correctly handle the last proxy override in HTTP_ShouldBypassProxy. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/wininet/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index ed5105d48a9..a468a84eca6 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -1771,7 +1771,7 @@ static BOOL HTTP_ShouldBypassProxy(appinfo_t *lpwai, LPCWSTR server) if (!ptr) ptr = strchrW( tmp, ' ' ); if (!ptr) - ptr = tmp + strlenW(ptr); + ptr = tmp + strlenW(tmp); ret = HTTP_DomainMatches( server, substr(tmp, ptr-tmp) ); if (ret || !*ptr) break;