[1/1] winhttp: Prevent console spamming in get_system_proxy_autoconfig_url.

Jeremy Audiger audiger at live.fr
Sat Jul 30 10:46:12 CDT 2016


When Battle.net is installing, I got a spam in the console from this function. This fix prevents it.

Signed-off-by: Jérémy Audiger <audiger at live.fr>
Signed-off-by: Jérémy Audiger <audiger at live.fr>
---
 dlls/winhttp/session.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c
index 28587f5..dcbe7da 100644
--- a/dlls/winhttp/session.c
+++ b/dlls/winhttp/session.c
@@ -1351,7 +1351,15 @@ static BOOL get_system_proxy_autoconfig_url( char *buf, DWORD buflen )
     CFRelease( settings );
     return ret;
 #else
-    FIXME( "no support on this platform\n" );
+    static BOOL first = TRUE;
+    if(first)
+    {
+        FIXME("No support on this platform\n");
+        first = FALSE;
+    } else
+    {
+        TRACE("No support on this platform\n");
+    }
     return FALSE;
 #endif
 }
-- 
2.7.4



More information about the wine-patches mailing list