Commit dbb6ab22 authored by Dave Hawkes's avatar Dave Hawkes Committed by Alexandre Julliard

GetIconInfo did no correctly identify icons from cursors.

parent fa861c2d
...@@ -82,7 +82,7 @@ typedef struct tagICONCACHE ...@@ -82,7 +82,7 @@ typedef struct tagICONCACHE
static ICONCACHE *IconAnchor = NULL; static ICONCACHE *IconAnchor = NULL;
static CRITICAL_SECTION IconCrst = CRITICAL_SECTION_INIT; static CRITICAL_SECTION IconCrst = CRITICAL_SECTION_INIT;
static DWORD ICON_HOTSPOT = 0x42424242; static WORD ICON_HOTSPOT = 0x4242;
/********************************************************************** /**********************************************************************
* CURSORICON_FindSharedIcon * CURSORICON_FindSharedIcon
...@@ -1793,8 +1793,8 @@ BOOL WINAPI GetIconInfo(HICON hIcon,LPICONINFO iconinfo) { ...@@ -1793,8 +1793,8 @@ BOOL WINAPI GetIconInfo(HICON hIcon,LPICONINFO iconinfo) {
(ciconinfo->ptHotSpot.y == ICON_HOTSPOT) ) (ciconinfo->ptHotSpot.y == ICON_HOTSPOT) )
{ {
iconinfo->fIcon = TRUE; iconinfo->fIcon = TRUE;
iconinfo->xHotspot = 0; iconinfo->xHotspot = ciconinfo->nWidth / 2;
iconinfo->yHotspot = 0; iconinfo->yHotspot = ciconinfo->nHeight / 2;
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment