From bdfd218e7e4e7325bdb6c22bed4597b1c830d773 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Fri, 7 Aug 2015 21:35:27 +0200 Subject: [PATCH] winhttp-System_Proxy_Autoconfig: Also silence 'no support on this platform' in wininet. --- patches/patchinstall.sh | 4 ++- ...wininet-no-support-on-this-platform-.patch | 26 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 patches/winhttp-System_Proxy_Autoconfig/0002-wininet-Silence-wininet-no-support-on-this-platform-.patch diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index f140e089..42a815ed 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -5589,12 +5589,14 @@ fi # Patchset winhttp-System_Proxy_Autoconfig # | # | Modified files: -# | * dlls/winhttp/session.c +# | * dlls/winhttp/session.c, dlls/wininet/internet.c # | if test "$enable_winhttp_System_Proxy_Autoconfig" -eq 1; then patch_apply winhttp-System_Proxy_Autoconfig/0001-winhttp-Silence-repeated-no-support-on-this-platform.patch + patch_apply winhttp-System_Proxy_Autoconfig/0002-wininet-Silence-wininet-no-support-on-this-platform-.patch ( echo '+ { "Jarkko Korpi", "winhttp: Silence repeated \"no support on this platform\" message.", 1 },'; + echo '+ { "Jarkko Korpi", "wininet: Silence wininet no support on this platform message.", 1 },'; ) >> "$patchlist" fi diff --git a/patches/winhttp-System_Proxy_Autoconfig/0002-wininet-Silence-wininet-no-support-on-this-platform-.patch b/patches/winhttp-System_Proxy_Autoconfig/0002-wininet-Silence-wininet-no-support-on-this-platform-.patch new file mode 100644 index 00000000..f460fd56 --- /dev/null +++ b/patches/winhttp-System_Proxy_Autoconfig/0002-wininet-Silence-wininet-no-support-on-this-platform-.patch @@ -0,0 +1,26 @@ +From e5466e251a5dc694ef214d5c96bf59ebb767f6a4 Mon Sep 17 00:00:00 2001 +From: Jarkko Korpi +Date: Sat, 1 Aug 2015 06:45:35 +0300 +Subject: wininet: Silence wininet no support on this platform message. + +--- + dlls/wininet/internet.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c +index ee04f40..c512a5c 100644 +--- a/dlls/wininet/internet.c ++++ b/dlls/wininet/internet.c +@@ -2416,7 +2416,8 @@ static BOOL get_proxy_autoconfig_url( char *buf, DWORD buflen ) + CFRelease( settings ); + return ret; + #else +- FIXME( "no support on this platform\n" ); ++ static int once; ++ if (!once++) FIXME( "no support on this platform\n" ); + return FALSE; + #endif + } +-- +2.5.0 +