[1/2] ole32: Forward OleCreateLinkFromData and OleCreateStaticFromData to OleCreateFromData.
Dmitry Timoshkov
dmitry at baikal.ru
Wed May 16 02:57:15 CDT 2012
These patches make WICExplorer a bit more useful.
---
dlls/ole32/ole2impl.c | 21 +++++++++++++++++++++
dlls/ole32/ole2stubs.c | 26 --------------------------
2 files changed, 21 insertions(+), 26 deletions(-)
diff --git a/dlls/ole32/ole2impl.c b/dlls/ole32/ole2impl.c
index e4eccc1..58d6801 100644
--- a/dlls/ole32/ole2impl.c
+++ b/dlls/ole32/ole2impl.c
@@ -196,6 +196,27 @@ HRESULT WINAPI OleCreateFromData(LPDATAOBJECT data, REFIID iid,
fmt, NULL, NULL, client_site, stg, obj);
}
+/******************************************************************************
+ * OleCreateLinkFromData [OLE32.@]
+ */
+HRESULT WINAPI OleCreateLinkFromData(LPDATAOBJECT data, REFIID iid,
+ DWORD renderopt, LPFORMATETC fmt,
+ LPOLECLIENTSITE client_site, LPSTORAGE stg,
+ LPVOID *obj)
+{
+ return OleCreateFromData(data, iid, renderopt, fmt, client_site, stg, obj);
+}
+
+/******************************************************************************
+ * OleCreateStaticFromData [OLE32.@]
+ */
+HRESULT WINAPI OleCreateStaticFromData(LPDATAOBJECT data, REFIID iid,
+ DWORD renderopt, LPFORMATETC fmt,
+ LPOLECLIENTSITE client_site, LPSTORAGE stg,
+ LPVOID *obj)
+{
+ return OleCreateFromData(data, iid, renderopt, fmt, client_site, stg, obj);
+}
/******************************************************************************
* OleDuplicateData [OLE32.@]
diff --git a/dlls/ole32/ole2stubs.c b/dlls/ole32/ole2stubs.c
index 16ac8d1..6988dfe 100644
--- a/dlls/ole32/ole2stubs.c
+++ b/dlls/ole32/ole2stubs.c
@@ -82,32 +82,6 @@ HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseT
return NULL;
}
-
-/******************************************************************************
- * OleCreateStaticFromData [OLE32.@]
- */
-HRESULT WINAPI OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj, REFIID iid,
- DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
- LPSTORAGE pStg, LPVOID* ppvObj)
-{
- FIXME("(srcdata=%p, refiid=%s, renderopt=%x, formatetc=%p, client=%p, storage=%p, ppv=%p), stub!\n",
- pSrcDataObj,debugstr_guid(iid),renderopt,pFormatEtc,pClientSite,pStg,ppvObj );
- return E_NOTIMPL;
-}
-
-/******************************************************************************
- * OleCreateLinkFromData [OLE32.@]
- */
-
-HRESULT WINAPI OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
- DWORD renderopt, LPFORMATETC pFormatEtc,
- LPOLECLIENTSITE pClientSite, LPSTORAGE pStg,
- LPVOID* ppvObj)
-{
- FIXME("(not shown), stub!\n");
- return E_NOTIMPL;
-}
-
/***********************************************************************
* OleRegEnumFormatEtc [OLE32.@]
*/
--
1.7.10.1
More information about the wine-patches
mailing list