Module: wine Branch: master Commit: 59e0d7af68138ab295921447569ae42d3b71faec URL: http://source.winehq.org/git/wine.git/?a=commit;h=59e0d7af68138ab29592144756...
Author: Daniel Jelinski djelinski1@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 );