Commit 6bbd0b87 authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

urlmon: IsValidUrl should not fail if first parameter is not NULL.

parent 570f446f
......@@ -1454,9 +1454,20 @@ static void test_MkParseDisplayNameEx(void)
static void test_IsValidURL(void)
{
HRESULT hr;
IBindCtx *bctx = NULL;
hr = IsValidURL(NULL, 0, 0);
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)
......
......@@ -426,7 +426,7 @@ HRESULT WINAPI DllRegisterServerEx(void)
* Determines if a specified string is a valid URL.
*
* PARAMS
* pBC [I] ignored, must be NULL.
* pBC [I] ignored, should be NULL.
* szURL [I] string that represents the URL in question.
* 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);
if (pBC || dwReserved || !szURL)
if (dwReserved || !szURL)
return E_INVALIDARG;
return S_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment