wininet: Return INTERNET_RAS_INSTALLED flag from InternetGetConnectedStateExW().

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
This commit is contained in:
Paul Gofman 2022-05-27 17:22:37 -05:00 committed by Alexandre Julliard
parent 5e25a4546c
commit 49845c512d
2 changed files with 2 additions and 4 deletions

View file

@ -1213,8 +1213,8 @@ BOOL WINAPI InternetGetConnectedStateExW(LPDWORD lpdwStatus, LPWSTR lpszConnecti
return FALSE;
if (lpdwStatus) {
WARN("always returning LAN connection.\n");
*lpdwStatus = INTERNET_CONNECTION_LAN;
WARN("always returning LAN connection and RAS installed.\n");
*lpdwStatus = INTERNET_CONNECTION_LAN | INTERNET_RAS_INSTALLED;
}
/* When the buffer size is zero LoadStringW fills the buffer with a pointer to

View file

@ -1632,7 +1632,6 @@ static void test_InternetGetConnectedStateExA(void)
buffer[0] = 0;
res = pInternetGetConnectedStateExA(&flags, buffer, sizeof(buffer), 0);
trace("Internet Connection: Flags 0x%02lx - Name '%s'\n", flags, buffer);
todo_wine
ok (flags & INTERNET_RAS_INSTALLED, "Missing RAS flag\n");
if(!res) {
win_skip("InternetGetConnectedStateExA tests require a valid connection\n");
@ -1734,7 +1733,6 @@ static void test_InternetGetConnectedStateExW(void)
buffer[0] = 0;
res = pInternetGetConnectedStateExW(&flags, buffer, ARRAY_SIZE(buffer), 0);
trace("Internet Connection: Flags 0x%02lx - Name '%s'\n", flags, wine_dbgstr_w(buffer));
todo_wine
ok (flags & INTERNET_RAS_INSTALLED, "Missing RAS flag\n");
if(!res) {
win_skip("InternetGetConnectedStateExW tests require a valid connection\n");