Commit d4245634 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

wininet: Fix a failing test.

parent dd362a62
...@@ -320,12 +320,12 @@ static void InternetCrackUrlW_test(void) ...@@ -320,12 +320,12 @@ static void InternetCrackUrlW_test(void)
comp.dwExtraInfoLength = sizeof(extra)/sizeof(extra[0]); comp.dwExtraInfoLength = sizeof(extra)/sizeof(extra[0]);
r = InternetCrackUrlW(url2, 0, 0, &comp); r = InternetCrackUrlW(url2, 0, 0, &comp);
ok( r, "InternetCrackUrl failed, error %lx\n",GetLastError()); todo_wine {
ok(!comp.dwSchemeLength,".dwSchemeLength should be 0, but is %ld\n", comp.dwSchemeLength); ok(!r, "InternetCrackUrl should have failed\n");
ok(!comp.dwHostNameLength,".dwHostNameLength should be 0, but is %ld\n", comp.dwHostNameLength); ok(GetLastError() == ERROR_INTERNET_UNRECOGNIZED_SCHEME,
ok(!comp.dwUserNameLength,".dwUserNameLength should be 0, but is %ld\n", comp.dwUserNameLength); "InternetCrackUrl should have failed with error ERROR_INTERNET_UNRECOGNIZED_SCHEME instead of error %ld\n",
ok(!comp.dwPasswordLength,".dwPasswordLength should be 0, but is %ld\n", comp.dwPasswordLength); GetLastError());
ok(!comp.dwExtraInfoLength,".dwExtraInfoLength should be 0, but is %ld\n", comp.dwExtraInfoLength); }
} }
static void fill_url_components(LPURL_COMPONENTS lpUrlComponents) static void fill_url_components(LPURL_COMPONENTS lpUrlComponents)
......
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