mirror of
https://github.com/reactos/wine.git
synced 2024-11-27 13:40:50 +00:00
shlwapi: Fix a return value in UrlEscapeA.
This commit is contained in:
parent
43bff70a22
commit
ea05a257df
@ -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(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++) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user