winhttp-System_Proxy_Autoconfig: Also silence 'no support on this platform' in wininet.

This commit is contained in:
Sebastian Lackner 2015-08-07 21:35:27 +02:00
parent 2bc55e66c3
commit bdfd218e7e
2 changed files with 29 additions and 1 deletions

View File

@ -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

View File

@ -0,0 +1,26 @@
From e5466e251a5dc694ef214d5c96bf59ebb767f6a4 Mon Sep 17 00:00:00 2001
From: Jarkko Korpi <jarkko_korpi@hotmail.com>
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