shlwapi: Fix a failing test.

This commit is contained in:
Louis Lenders 2006-12-24 08:09:04 +00:00 committed by Alexandre Julliard
parent e37755b60c
commit dff271df3e
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

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