Fix a test for InternetCreateUrlA as no Windows platform sets last
error here. Make InternetCreateUrlA pass the test.
This commit is contained in:
parent
9d2c6a9ce9
commit
bc52612f77
@ -3584,8 +3584,6 @@ static BOOL calc_url_length(LPURL_COMPONENTSW lpUrlComponents,
|
|||||||
SetLastError(ERROR_INVALID_PARAMETER);
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
SetLastError(ERROR_ALREADY_EXISTS);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lpUrlComponents->lpszPassword)
|
if (lpUrlComponents->lpszPassword)
|
||||||
|
@ -784,8 +784,8 @@ static void InternetCreateUrlA_test()
|
|||||||
len = 42;
|
len = 42;
|
||||||
ret = InternetCreateUrlA(&urlComp, 0, szUrl, &len);
|
ret = InternetCreateUrlA(&urlComp, 0, szUrl, &len);
|
||||||
ok(ret, "Expected success\n");
|
ok(ret, "Expected success\n");
|
||||||
ok(GetLastError() == ERROR_ALREADY_EXISTS,
|
ok(GetLastError() == 0xdeadbeef,
|
||||||
"Expected ERROR_ALREADYEXISTS, got %ld\n", GetLastError());
|
"Expected 0xdeadbeef, got %ld\n", GetLastError());
|
||||||
ok(len == 32, "Expected len 32, got %ld\n", len);
|
ok(len == 32, "Expected len 32, got %ld\n", len);
|
||||||
ok(!strcmp(szUrl, CREATE_URL4), "Expected %s, got %s\n", CREATE_URL3, szUrl);
|
ok(!strcmp(szUrl, CREATE_URL4), "Expected %s, got %s\n", CREATE_URL3, szUrl);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user