>From a6e0b7c37d51a4e76b0bb01c20a3695fdab77efa Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Wed, 25 Jan 2012 15:55:54 +1100
Subject: [PATCH] Add DllCanUnloadNow, DllGetClassObject stubs
To: wine-patches <wine-patches@winehq.org>

---
 dlls/scrrun/scrrun.c    |   21 +++++++++++++++++++++
 dlls/scrrun/scrrun.spec |    4 ++--
 2 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/dlls/scrrun/scrrun.c b/dlls/scrrun/scrrun.c
index 3284584..c74832b 100644
--- a/dlls/scrrun/scrrun.c
+++ b/dlls/scrrun/scrrun.c
@@ -65,3 +65,24 @@ HRESULT WINAPI DllUnregisterServer(void)
     TRACE("()\n");
     return __wine_unregister_resources(scrrun_instance);
 }
+
+/***********************************************************************
+ *      DllGetClassObject (scrrun.@)
+ */
+
+HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
+{
+    FIXME("(%s, %s, %p): stub\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
+    if(!ppv)
+        return E_INVALIDARG;
+
+    return E_NOTIMPL;
+}
+
+/***********************************************************************
+ *      DllCanUnloadNow (scrrun.@)
+ */
+HRESULT WINAPI DllCanUnloadNow(void)
+{
+    return S_FALSE;
+}
diff --git a/dlls/scrrun/scrrun.spec b/dlls/scrrun/scrrun.spec
index 838e9ea..e71b683 100644
--- a/dlls/scrrun/scrrun.spec
+++ b/dlls/scrrun/scrrun.spec
@@ -1,6 +1,6 @@
 @ stub DLLGetDocumentation
-@ stub DllCanUnloadNow
-@ stub DllGetClassObject
+@ stdcall -private DllCanUnloadNow()
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
 @ stdcall -private DllRegisterServer()
 @ stdcall -private DllUnregisterServer()
 @ stub DoOpenPipeStream
-- 
1.7.5.4

