Jacek Caban : wininet: Correctly handle the last proxy override in HTTP_ShouldBypassProxy.
Alexandre Julliard
julliard at winehq.org
Wed Jun 1 10:45:45 CDT 2016
Module: wine
Branch: master
Commit: fff5dca78786060e8c9741fa7d41b153b937be6e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fff5dca78786060e8c9741fa7d41b153b937be6e
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue May 31 19:42:53 2016 +0200
wininet: Correctly handle the last proxy override in HTTP_ShouldBypassProxy.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 ed5105d..a468a84 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;
More information about the wine-cvs
mailing list