[PATCH] ole32: Add stub for OleGetIconOfFile.

Alex Henrie alexhenrie24 at gmail.com
Wed Jun 21 00:43:35 CDT 2017


From: Zhenbo Li <litimetal at gmail.com>

Fixes https://bugs.winehq.org/show_bug.cgi?id=11433

Patch from Wine Staging.

Signed-off-by: Zhenbo Li <litimetal at gmail.com>
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 dlls/ole32/ole2stubs.c | 9 +++++++++
 dlls/ole32/ole32.spec  | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/dlls/ole32/ole2stubs.c b/dlls/ole32/ole2stubs.c
index 90862d04e7..c6e5a307b6 100644
--- a/dlls/ole32/ole2stubs.c
+++ b/dlls/ole32/ole2stubs.c
@@ -63,6 +63,15 @@ HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseT
 }
 
 /***********************************************************************
+ *              OleGetIconOfFile        [OLE32.@]
+ */
+HGLOBAL WINAPI OleGetIconOfFile(LPOLESTR path, BOOL use_file_as_label)
+{
+    FIXME("(%p, %d), stub!\n", path, use_file_as_label);
+    return NULL;
+}
+
+/***********************************************************************
  *           OleRegEnumFormatEtc    [OLE32.@]
  */
 HRESULT WINAPI DECLSPEC_HOTPATCH OleRegEnumFormatEtc (
diff --git a/dlls/ole32/ole32.spec b/dlls/ole32/ole32.spec
index 58bdd22d68..bddc9e5824 100644
--- a/dlls/ole32/ole32.spec
+++ b/dlls/ole32/ole32.spec
@@ -207,7 +207,7 @@
 @ stdcall OleGetAutoConvert(ptr ptr)
 @ stdcall OleGetClipboard(ptr)
 @ stdcall OleGetIconOfClass(ptr ptr long)
-@ stub OleGetIconOfFile
+@ stdcall OleGetIconOfFile(ptr long)
 @ stdcall OleInitialize(ptr)
 @ stdcall OleInitializeWOW(long long)
 @ stdcall OleIsCurrentClipboard(ptr)
-- 
2.13.1




More information about the wine-patches mailing list