mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
wininet: Fixed some tests.
This commit is contained in:
parent
b8092fbada
commit
d3682dd33f
@ -289,7 +289,8 @@ static void test_null(void)
|
||||
|
||||
sz = 0;
|
||||
r = InternetGetCookieW(NULL, NULL, NULL, &sz);
|
||||
ok(GetLastError() == ERROR_INVALID_PARAMETER, "wrong error\n");
|
||||
ok(GetLastError() == ERROR_INVALID_PARAMETER || GetLastError() == ERROR_INTERNET_UNRECOGNIZED_SCHEME,
|
||||
"wrong error %u\n", GetLastError());
|
||||
ok( r == FALSE, "return wrong\n");
|
||||
|
||||
r = InternetGetCookieW(szServer, NULL, NULL, &sz);
|
||||
@ -315,7 +316,7 @@ static void test_null(void)
|
||||
ok( r == TRUE, "return wrong\n");
|
||||
|
||||
/* sz == lstrlenW(buffer) only in XP SP1 */
|
||||
ok( sz == 1 + lstrlenW(buffer), "sz wrong\n");
|
||||
ok( sz == 1 + lstrlenW(buffer) || sz == lstrlenW(buffer), "sz wrong %d\n", sz);
|
||||
|
||||
/* before XP SP2, buffer is "server; server" */
|
||||
ok( !lstrcmpW(szExpect, buffer) || !lstrcmpW(szServer, buffer), "cookie data wrong\n");
|
||||
|
Loading…
Reference in New Issue
Block a user