urlmon: IsValidUrl should not fail if first parameter is not NULL.
This commit is contained in:
parent
570f446f8c
commit
6bbd0b87d5
|
@ -1454,9 +1454,20 @@ static void test_MkParseDisplayNameEx(void)
|
||||||
static void test_IsValidURL(void)
|
static void test_IsValidURL(void)
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
IBindCtx *bctx = NULL;
|
||||||
|
|
||||||
hr = IsValidURL(NULL, 0, 0);
|
hr = IsValidURL(NULL, 0, 0);
|
||||||
ok(hr == E_INVALIDARG, "Expected E_INVALIDARG, got %08x\n", hr);
|
ok(hr == E_INVALIDARG, "Expected E_INVALIDARG, got %08x\n", hr);
|
||||||
|
|
||||||
|
hr = IsValidURL(NULL, wszHttpWineHQ, 0);
|
||||||
|
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
|
||||||
|
|
||||||
|
CreateBindCtx(0, &bctx);
|
||||||
|
|
||||||
|
hr = IsValidURL(bctx, wszHttpWineHQ, 0);
|
||||||
|
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
|
||||||
|
|
||||||
|
IBindCtx_Release(bctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
START_TEST(misc)
|
START_TEST(misc)
|
||||||
|
|
|
@ -426,7 +426,7 @@ HRESULT WINAPI DllRegisterServerEx(void)
|
||||||
* Determines if a specified string is a valid URL.
|
* Determines if a specified string is a valid URL.
|
||||||
*
|
*
|
||||||
* PARAMS
|
* PARAMS
|
||||||
* pBC [I] ignored, must be NULL.
|
* pBC [I] ignored, should be NULL.
|
||||||
* szURL [I] string that represents the URL in question.
|
* szURL [I] string that represents the URL in question.
|
||||||
* dwReserved [I] reserved and must be zero.
|
* dwReserved [I] reserved and must be zero.
|
||||||
*
|
*
|
||||||
|
@ -442,7 +442,7 @@ HRESULT WINAPI IsValidURL(LPBC pBC, LPCWSTR szURL, DWORD dwReserved)
|
||||||
{
|
{
|
||||||
FIXME("(%p, %s, %d): stub\n", pBC, debugstr_w(szURL), dwReserved);
|
FIXME("(%p, %s, %d): stub\n", pBC, debugstr_w(szURL), dwReserved);
|
||||||
|
|
||||||
if (pBC || dwReserved || !szURL)
|
if (dwReserved || !szURL)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
Loading…
Reference in New Issue