[PATCH] [wmvcore] Add stub for WMCheckURlExtension

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] [wmvcore] Add stub for WMCheckURlExtension

Vijay Kiran Kamuju
Fixes bug #44300

Signed-off-by: Vijay Kiran Kamuju <[hidden email]>
---
 dlls/wmvcore/wmvcore.spec   |  2 +-
 dlls/wmvcore/wmvcore_main.c | 10 ++++++++++
 include/wmsdkidl.idl        |  2 ++
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/dlls/wmvcore/wmvcore.spec b/dlls/wmvcore/wmvcore.spec
index f3e3b6412274..61c3c0885249 100644
--- a/dlls/wmvcore/wmvcore.spec
+++ b/dlls/wmvcore/wmvcore.spec
@@ -1,4 +1,4 @@
-@ stub WMCheckURLExtension
+@ stdcall WMCheckURLExtension(wstr)
 @ stdcall WMCheckURLScheme(wstr)
 @ stub WMCreateBackupRestorerPrivate
 @ stub WMCreateSyncReaderPriv
diff --git a/dlls/wmvcore/wmvcore_main.c b/dlls/wmvcore/wmvcore_main.c
index ae8b486532eb..c547c48bfc7c 100644
--- a/dlls/wmvcore/wmvcore_main.c
+++ b/dlls/wmvcore/wmvcore_main.c
@@ -47,6 +47,16 @@ HRESULT WINAPI DllRegisterServer(void)
     return S_OK;
 }
 
+HRESULT WINAPI WMCheckURLExtension(const WCHAR *url)
+{
+    FIXME("(%s): stub\n", wine_dbgstr_w(url));
+
+    if (!url)
+        return E_INVALIDARG;
+
+    return NS_E_INVALID_NAME;
+}
+
 HRESULT WINAPI WMCheckURLScheme(const WCHAR *scheme)
 {
     FIXME("(%s): stub\n", wine_dbgstr_w(scheme));
diff --git a/include/wmsdkidl.idl b/include/wmsdkidl.idl
index d1cbcd227694..c080b8e73a6b 100644
--- a/include/wmsdkidl.idl
+++ b/include/wmsdkidl.idl
@@ -1616,6 +1616,8 @@ interface IWMReaderPlaylistBurn : IUnknown
 }
 
 
+cpp_quote("HRESULT WINAPI WMCheckURLExtension(LPCWSTR);")
+cpp_quote("HRESULT WINAPI WMCheckURLScheme(LPCWSTR);")
 cpp_quote("HRESULT WINAPI WMCreateWriter(IUnknown*,IWMWriter**);")
 cpp_quote("HRESULT WINAPI WMCreateReader(IUnknown*,DWORD,IWMReader**);")
 
--
2.15.1