Louis Lenders : ole32: Add stub for OleConvertIStorageToOLESTREAMEx.

Alexandre Julliard julliard at winehq.org
Tue Apr 12 13:38:05 CDT 2022


Module: wine
Branch: oldstable
Commit: 1a508ae2bf9a90acefada0a508f3690b37d58fa5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1a508ae2bf9a90acefada0a508f3690b37d58fa5

Author: Louis Lenders <xerox.xerox2000x at gmail.com>
Date:   Fri Jan 21 10:06:59 2022 +0100

ole32: Add stub for OleConvertIStorageToOLESTREAMEx.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52298
Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
Signed-off-by: Esme Povirk <esme at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 18e331fd63173b3f3fe00e930e3e09aad94493a0)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/ole32/ole32.spec  |  2 +-
 dlls/ole32/storage32.c | 11 +++++++++++
 include/ole2.h         |  2 ++
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/dlls/ole32/ole32.spec b/dlls/ole32/ole32.spec
index 8e73fdd16b4..08e15fd3d8b 100644
--- a/dlls/ole32/ole32.spec
+++ b/dlls/ole32/ole32.spec
@@ -187,7 +187,7 @@
 @ stdcall Ole32DllGetClassObject(ptr ptr ptr)
 @ stdcall OleBuildVersion()
 @ stdcall OleConvertIStorageToOLESTREAM(ptr ptr)
-@ stub OleConvertIStorageToOLESTREAMEx
+@ stdcall OleConvertIStorageToOLESTREAMEx(ptr long long long long ptr ptr)
 @ stdcall OleConvertOLESTREAMToIStorage(ptr ptr ptr)
 @ stub OleConvertOLESTREAMToIStorageEx
 @ stdcall OleCreate(ptr ptr long ptr ptr ptr ptr)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index 3d372af83f5..706655ebd17 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -10595,6 +10595,17 @@ enum stream_1ole_flags {
     OleStream_Convert      = 0x00000004
 };
 
+/*************************************************************************
+ * OleConvertIStorageToOLESTREAMEx [OLE32.@]
+ */
+HRESULT WINAPI OleConvertIStorageToOLESTREAMEx ( LPSTORAGE stg, CLIPFORMAT cf, LONG width, LONG height,
+                                                 DWORD size, LPSTGMEDIUM medium, LPOLESTREAM olestream )
+{
+    FIXME("%p %x %d %d %d %p %p stub\n", stg, cf, width, height, size, medium, olestream);
+
+    return E_NOTIMPL;
+}
+
 /***********************************************************************
  *		GetConvertStg (OLE32.@)
  */
diff --git a/include/ole2.h b/include/ole2.h
index 05c1b5502c7..628bebae137 100644
--- a/include/ole2.h
+++ b/include/ole2.h
@@ -161,6 +161,8 @@ typedef struct _OLESTREAM {
 
 HRESULT     WINAPI OleConvertOLESTREAMToIStorage( LPOLESTREAM lpolestream, LPSTORAGE pstg, const DVTARGETDEVICE* ptd);
 HRESULT     WINAPI OleConvertIStorageToOLESTREAM( LPSTORAGE pstg, LPOLESTREAM lpolestream);
+HRESULT     WINAPI OleConvertIStorageToOLESTREAMEx( LPSTORAGE stg, CLIPFORMAT cf, LONG width, LONG height,
+                                                    DWORD size, LPSTGMEDIUM medium, LPOLESTREAM olestream );
 
 HRESULT     WINAPI OleDoAutoConvert( LPSTORAGE pStg, LPCLSID pClsidNew );
 HRESULT     WINAPI OleGetAutoConvert( REFCLSID clsidOld, LPCLSID pClsidNew );




More information about the wine-cvs mailing list