[PATCH v2] ole32: Add stub for OleGetIconOfFile.
Alex Henrie
alexhenrie24 at gmail.com
Wed Jun 21 01:13:28 CDT 2017
From: Zhenbo Li <litimetal at gmail.com>
Fixes https://bugs.winehq.org/show_bug.cgi?id=11433
Patch from Wine Staging.
v2: Print string instead of pointer and use wstr in the spec file.
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..d7fd58c526 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("(%s, %d), stub!\n", debugstr_w(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..d5a71b31ce 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(wstr long)
@ stdcall OleInitialize(ptr)
@ stdcall OleInitializeWOW(long long)
@ stdcall OleIsCurrentClipboard(ptr)
--
2.13.1
More information about the wine-patches
mailing list