From 26f29fdad015494df24d3c8d78f9d6272e001100 Mon Sep 17 00:00:00 2001
From: Bernard Ladenthin <bernard@ladenthin.net>
Date: Sat, 30 Dec 2006 04:49:27 +0100
Subject: [PATCH] oleaut32: Better OleIconToCursor stub.

---
 dlls/oleaut32/oleaut.c | 10 ++++++++++
 dlls/oleaut32/stubs.c  |  9 ---------
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/dlls/oleaut32/oleaut.c b/dlls/oleaut32/oleaut.c
index d6a08a92ff9..1fe68b8d635 100644
--- a/dlls/oleaut32/oleaut.c
+++ b/dlls/oleaut32/oleaut.c
@@ -837,3 +837,13 @@ BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved)
 
   return TRUE;
 }
+
+/***********************************************************************
+ *              OleIconToCursor (OLEAUT32.415)
+ */
+HCURSOR WINAPI OleIconToCursor( HINSTANCE hinstExe, HICON hIcon)
+{
+    FIXME("(%p,%p), partially implemented.\n",hinstExe,hIcon);
+    /* FIXME: make a extended conversation from HICON to HCURSOR */
+    return CopyCursor(hIcon);
+}
diff --git a/dlls/oleaut32/stubs.c b/dlls/oleaut32/stubs.c
index ac2d4948a85..d87e76e2d13 100644
--- a/dlls/oleaut32/stubs.c
+++ b/dlls/oleaut32/stubs.c
@@ -32,15 +32,6 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(ole);
 
-/***********************************************************************
- * OleIconToCursor (OLEAUT32.415)
- */
-HCURSOR WINAPI OleIconToCursor( HINSTANCE hinstExe, HICON hicon)
-{
-	FIXME("(%p,%p), not implemented (olepro32.dll)\n",hinstExe,hicon);
-	return S_OK;
-}
-
 /***********************************************************************
  * OleCreatePropertyFrameIndirect (OLEAUT32.416)
  */