From ba5fe46f8cab4e08e49108c0c336d9f5afae2abf Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Thu, 9 Sep 2004 19:17:57 +0000 Subject: [PATCH] Added stub for IsValidURL. --- dlls/urlmon/urlmon.spec | 2 +- dlls/urlmon/urlmon_main.c | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/dlls/urlmon/urlmon.spec b/dlls/urlmon/urlmon.spec index 4d55364785b..ce9ac91eaec 100644 --- a/dlls/urlmon/urlmon.spec +++ b/dlls/urlmon/urlmon.spec @@ -46,7 +46,7 @@ @ stdcall IsAsyncMoniker(ptr) @ stub IsLoggingEnabledA @ stub IsLoggingEnabledW -@ stub IsValidURL +@ stdcall IsValidURL(ptr wstr long) @ stdcall MkParseDisplayNameEx(ptr ptr ptr ptr) ole32.MkParseDisplayName @ stdcall ObtainUserAgentString(long str ptr) @ stub PrivateCoInstall diff --git a/dlls/urlmon/urlmon_main.c b/dlls/urlmon/urlmon_main.c index 73c0552843e..146f239409c 100644 --- a/dlls/urlmon/urlmon_main.c +++ b/dlls/urlmon/urlmon_main.c @@ -142,3 +142,31 @@ HRESULT WINAPI CoInternetCompareUrl(LPCWSTR pwzUrl1, LPCWSTR pwzUrl2, DWORD dwCo TRACE("(%s,%s,%08lx)\n", debugstr_w(pwzUrl1), debugstr_w(pwzUrl2), dwCompareFlags); return UrlCompareW(pwzUrl1, pwzUrl2, dwCompareFlags)==0?S_OK:S_FALSE; } + +/************************************************************************** + * IsValidURL (URLMON.@) + * + * Determines if a specified string is a valid URL. + * + * PARAMS + * pBC [I] ignored, must be NULL. + * szURL [I] string that represents the URL in question. + * dwReserved [I] reserved and must be zero. + * + * RETURNS + * Success: S_OK. + * Failure: S_FALSE. + * returns E_INVALIDARG if one or more of the args is invalid. + * + * TODO: + * test functionality against windows to see what a valid URL is. + */ +HRESULT WINAPI IsValidURL(LPBC pBC, LPCWSTR szURL, DWORD dwReserved) +{ + FIXME("(%p, %s, %ld): stub\n", pBC, debugstr_w(szURL), dwReserved); + + if (pBC != NULL || dwReserved != 0) + return E_INVALIDARG; + + return S_OK; +}