Alistair Leslie-Hughes : ole32: Add CoGetDefaultContext stub.

Alexandre Julliard julliard at winehq.org
Thu Sep 20 15:05:37 CDT 2012


Module: wine
Branch: master
Commit: 939b1bbe2142496147148e390bee9ff856152904
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=939b1bbe2142496147148e390bee9ff856152904

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Sun Sep 23 14:02:21 2012 +1000

ole32: Add CoGetDefaultContext stub.

---

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

diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index 0055d15..2019b41 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -4279,6 +4279,15 @@ HRESULT WINAPI CoGetContextToken( ULONG_PTR *token )
     return S_OK;
 }
 
+/***********************************************************************
+ *           CoGetDefaultContext [OLE32.@]
+ */
+HRESULT WINAPI 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)




More information about the wine-cvs mailing list