From 59e0d7af68138ab295921447569ae42d3b71faec Mon Sep 17 00:00:00 2001 From: Daniel Jelinski Date: Fri, 8 Feb 2013 20:19:47 +0100 Subject: [PATCH] user32: Fix CopyImage implementation when changing cursor to icon. --- dlls/user32/cursoricon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c index 25059e09208..5b21101ec45 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 );