Commit dff271df authored by Louis Lenders's avatar Louis Lenders Committed by Alexandre Julliard

shlwapi: Fix a failing test.

parent e37755b6
......@@ -481,7 +481,7 @@ static void test_UrlEscape(void)
unsigned int i;
ret = UrlEscapeA("/woningplan/woonkamer basis.swf", NULL, &size, URL_ESCAPE_SPACES_ONLY);
ok(ret == E_POINTER, "got %x, expected %x\n", ret, E_POINTER);
ok(ret == E_INVALIDARG, "got %x, expected %x\n", ret, E_INVALIDARG);
for(i=0; i<sizeof(TEST_ESCAPE)/sizeof(TEST_ESCAPE[0]); i++) {
test_url_escape(TEST_ESCAPE[i].url, TEST_ESCAPE[i].flags,
......
......@@ -844,7 +844,7 @@ HRESULT WINAPI UrlEscapeA(
*pcchEscaped = lenA;
} else {
*pcchEscaped = lenA + 1;
ret = E_POINTER;
ret = E_INVALIDARG;
}
}
if(escapedW != bufW) HeapFree(GetProcessHeap(), 0, escapedW);
......
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