Commit c72a7d47 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

urlmon: Remove some CoInternetParseUrl tests.

Some tests with PARSE_DOMAIN flag fails on older urlmon.
parent 1402e954
...@@ -340,12 +340,15 @@ static void test_CoInternetParseUrl(void) ...@@ -340,12 +340,15 @@ static void test_CoInternetParseUrl(void)
ok(size == lstrlenW(parse_tests[i].schema), "[%d] wrong size\n", i); ok(size == lstrlenW(parse_tests[i].schema), "[%d] wrong size\n", i);
ok(!lstrcmpW(parse_tests[i].schema, buf), "[%d] wrong schema\n", i); ok(!lstrcmpW(parse_tests[i].schema, buf), "[%d] wrong schema\n", i);
memset(buf, 0xf0, sizeof(buf)); if(memcmp(parse_tests[i].url, wszRes, 3*sizeof(WCHAR))
hres = CoInternetParseUrl(parse_tests[i].url, PARSE_DOMAIN, 0, buf, && memcmp(parse_tests[i].url, wszAbout, 5*sizeof(WCHAR))) {
sizeof(buf)/sizeof(WCHAR), &size, 0); memset(buf, 0xf0, sizeof(buf));
ok(hres == parse_tests[i].domain_hres, "[%d] domain failed: %08x\n", i, hres); hres = CoInternetParseUrl(parse_tests[i].url, PARSE_DOMAIN, 0, buf,
if(parse_tests[i].domain) sizeof(buf)/sizeof(WCHAR), &size, 0);
ok(!lstrcmpW(parse_tests[i].domain, buf), "[%d] wrong domain, received %s\n", i, wine_dbgstr_w(buf)); ok(hres == parse_tests[i].domain_hres, "[%d] domain failed: %08x\n", i, hres);
if(parse_tests[i].domain)
ok(!lstrcmpW(parse_tests[i].domain, buf), "[%d] wrong domain, received %s\n", i, wine_dbgstr_w(buf));
}
memset(buf, 0xf0, sizeof(buf)); memset(buf, 0xf0, sizeof(buf));
hres = CoInternetParseUrl(parse_tests[i].url, PARSE_ROOTDOCUMENT, 0, buf, hres = CoInternetParseUrl(parse_tests[i].url, PARSE_ROOTDOCUMENT, 0, buf,
......
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