mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-24 06:26:23 +00:00
wininet: Return INTERNET_RAS_INSTALLED flag from InternetGetConnectedStateExW().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
This commit is contained in:
parent
5e25a4546c
commit
49845c512d
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue