ole32: Add CoGetDefaultContext stub

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Tue Sep 18 23:07:15 CDT 2012


Hi,


Changelog:
     ole32: Add CoGetDefaultContext stub


Best Regards
  Alistair Leslie-Hughes
-------------- next part --------------
>From 6e51af2e4f8c57f123c4b6d0eb7ad0a9927f0dc1 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Sun, 23 Sep 2012 14:02:21 +1000
Subject: [PATCH] Add CoGetDefaultContext stub
To: wine-patches <wine-patches at winehq.org>

---
 dlls/ole32/compobj.c  |    9 +++++++++
 dlls/ole32/ole32.spec |    1 +
 2 files changed, 10 insertions(+)

diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index 0055d15..2ea1dc9 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -4279,6 +4279,15 @@ HRESULT WINAPI CoGetContextToken( ULONG_PTR *token )
     return S_OK;
 }
 
+/***********************************************************************
+ *           CoGetContextToken [OLE32.@]
+ */
+HRESULT CoGetDefaultContext(APTTYPE type, REFIID riid, LPVOID *ppv)
+{
+    FIXME("%d %s %p stub\n", type, debugstr_guid(riid), ppv);
+    return E_NOINTERFACE;
+}
+
 HRESULT Handler_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
 {
     static const WCHAR wszInprocHandler32[] = {'I','n','p','r','o','c','H','a','n','d','l','e','r','3','2',0};
diff --git a/dlls/ole32/ole32.spec b/dlls/ole32/ole32.spec
index a27adfb..b9eb50e 100644
--- a/dlls/ole32/ole32.spec
+++ b/dlls/ole32/ole32.spec
@@ -27,6 +27,7 @@
 @ stdcall CoGetContextToken(ptr)
 @ stdcall CoGetCurrentLogicalThreadId(ptr)
 @ stdcall CoGetCurrentProcess()
+@ stdcall CoGetDefaultContext(long ptr ptr)
 @ stub CoGetInstanceFromFile      #@ stdcall (ptr ptr ptr long wstr long ptr) return 0,ERR_NOTIMPLEMENTED
 @ stub CoGetInstanceFromIStorage  #@ stdcall (ptr ptr ptr long ptr long ptr) return 0,ERR_NOTIMPLEMENTED
 @ stdcall CoGetInterfaceAndReleaseStream(ptr ptr ptr)
-- 
1.7.9.5



More information about the wine-patches mailing list