Commit d3682dd3 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Fixed some tests.

parent b8092fba
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment