Daniel Jelinski : user32: Fix CopyImage implementation when changing cursor to icon.

Alexandre Julliard julliard at winehq.org
Mon Feb 11 13:06:30 CST 2013


Module: wine
Branch: master
Commit: 59e0d7af68138ab295921447569ae42d3b71faec
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=59e0d7af68138ab295921447569ae42d3b71faec

Author: Daniel Jelinski <djelinski1 at gmail.com>
Date:   Fri Feb  8 20:19:47 2013 +0100

user32: Fix CopyImage implementation when changing cursor to icon.

---

 dlls/user32/cursoricon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c
index 25059e0..5b21101 100644
--- a/dlls/user32/cursoricon.c
+++ b/dlls/user32/cursoricon.c
@@ -2873,7 +2873,7 @@ HANDLE WINAPI CopyImage( HANDLE hnd, UINT type, INT desiredx,
 
             if (icon->rsrc && (flags & LR_COPYFROMRESOURCE))
                 res = CURSORICON_Load( icon->module, icon->resname, desiredx, desiredy, depth,
-                                       type == IMAGE_CURSOR, flags );
+                                       !icon->is_icon, flags );
             else
                 res = CopyIcon( hnd ); /* FIXME: change size if necessary */
             release_icon_ptr( hnd, icon );




More information about the wine-cvs mailing list