wininet: Fixed some tests.

This commit is contained in:
Jacek Caban 2008-03-02 19:53:13 +01:00 committed by Alexandre Julliard
parent b8092fbada
commit d3682dd33f

View File

@ -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");