shlwapi: Fix a return value in UrlEscapeA.

This commit is contained in:
Lei Zhang 2008-01-09 14:03:47 -08:00 committed by Alexandre Julliard
parent 43bff70a22
commit ea05a257df
2 changed files with 2 additions and 4 deletions

View File

@ -480,9 +480,7 @@ static void test_UrlEscape(void)
size = 1;
ret = UrlEscapeA("/woningplan/woonkamer basis.swf", empty_string, &size, URL_ESCAPE_SPACES_ONLY);
todo_wine {
ok(ret == E_POINTER, "got %x, expected %x\n", ret, E_POINTER);
}
ok(size == 34, "got %d, expected %d\n", size, 34);
for(i=0; i<sizeof(TEST_ESCAPE)/sizeof(TEST_ESCAPE[0]); i++) {

View File

@ -860,7 +860,7 @@ HRESULT WINAPI UrlEscapeA(
*pcchEscaped = lenA;
} else {
*pcchEscaped = lenA + 1;
ret = E_INVALIDARG;
ret = E_POINTER;
}
}
if(escapedW != bufW) HeapFree(GetProcessHeap(), 0, escapedW);