msdaps: Implement IDBInitialize_Initialize proxy and stub.
authorHuw Davies <huw@codeweavers.com>
Mon, 24 Aug 2009 09:21:16 +0000 (10:21 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 24 Aug 2009 13:17:35 +0000 (15:17 +0200)
dlls/msdaps/usrmarshal.c

index 917b426..106340b 100644 (file)
@@ -30,6 +30,7 @@
 #include "winuser.h"
 #include "winerror.h"
 #include "objbase.h"
+#include "oleauto.h"
 #include "oledb.h"
 
 #include "wine/debug.h"
@@ -121,14 +122,29 @@ HRESULT __RPC_STUB IDBProperties_SetProperties_Stub(IDBProperties* This, ULONG c
 
 HRESULT CALLBACK IDBInitialize_Initialize_Proxy(IDBInitialize* This)
 {
-    FIXME("(%p): stub\n", This);
-    return E_NOTIMPL;
+    HRESULT hr;
+    IErrorInfo *error;
+
+    TRACE("(%p)\n", This);
+    hr = IDBInitialize_RemoteInitialize_Proxy(This, &error);
+    if(error)
+    {
+        SetErrorInfo(0, error);
+        IErrorInfo_Release(error);
+    }
+    return hr;
 }
 
 HRESULT __RPC_STUB IDBInitialize_Initialize_Stub(IDBInitialize* This, IErrorInfo **ppErrorInfoRem)
 {
-    FIXME("(%p, %p): stub\n", This, ppErrorInfoRem);
-    return E_NOTIMPL;
+    HRESULT hr;
+    TRACE("(%p, %p)\n", This, ppErrorInfoRem);
+
+    *ppErrorInfoRem = NULL;
+    hr = IDBInitialize_Initialize(This);
+    if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
+
+    return hr;
 }
 
 HRESULT CALLBACK IDBInitialize_Uninitialize_Proxy(IDBInitialize* This)