Added patch to implement ole32.OleGetIconOfFile stub.

This commit is contained in:
Sebastian Lackner
2016-06-24 12:00:24 +02:00
parent 093f3b9818
commit 8281fca8dc
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,44 @@
From ab4519d42ee66a6e0c67ecc1d05e1b77ed35fd7f Mon Sep 17 00:00:00 2001
From: Zhenbo Li <litimetal@gmail.com>
Date: Tue, 21 Jun 2016 13:23:19 +0800
Subject: ole32: Add stub for OleGetIconOfFile.
Signed-off-by: Zhenbo Li <litimetal@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 90862d0..8289473 100644
--- a/dlls/ole32/ole2stubs.c
+++ b/dlls/ole32/ole2stubs.c
@@ -83,3 +83,12 @@ HRESULT WINAPI CoGetCallerTID(LPDWORD lpdwTID)
FIXME("stub!\n");
return E_NOTIMPL;
}
+
+/***********************************************************************
+ * OleGetIconOfFile [OLE32.@]
+ */
+HGLOBAL WINAPI OleGetIconOfFile(LPOLESTR path, BOOL use_file_as_label)
+{
+ FIXME("(%p, %d), stub!\n", path, use_file_as_label);
+ return NULL;
+}
diff --git a/dlls/ole32/ole32.spec b/dlls/ole32/ole32.spec
index eab8664..b5bf219 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.8.0

View File

@ -0,0 +1 @@
Fixes: Add stub for ole32.OleGetIconOfFile