[PATCH 1/3] wininet: Forward InternetGetConnectedState to Ex function

Bruno Jesus 00cpxxx at gmail.com
Sun Mar 5 22:24:29 CST 2017


From: Bruno Jesus <bjesus at codeweavers.com>

I'm working in making a VPN application believe it is connected correctly through Wine, so I'll add more flash to the Ex function.

Signed-off-by: Bruno Jesus <bjesus at codeweavers.com>
---
 dlls/wininet/internet.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index 02379c2..91678b6 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -1182,11 +1182,7 @@ BOOL WINAPI InternetGetConnectedState(LPDWORD lpdwStatus, DWORD dwReserved)
 {
     TRACE("(%p, 0x%08x)\n", lpdwStatus, dwReserved);
 
-    if (lpdwStatus) {
-	WARN("always returning LAN connection.\n");
-	*lpdwStatus = INTERNET_CONNECTION_LAN;
-    }
-    return TRUE;
+    return InternetGetConnectedStateExW(lpdwStatus, NULL, 0, dwReserved);
 }
 
 
-- 
2.9.3




More information about the wine-patches mailing list