Skip to content
Snippets Groups Projects
Commit dbb6ab22 authored by Dave Hawkes's avatar Dave Hawkes Committed by Alexandre Julliard
Browse files

GetIconInfo did no correctly identify icons from cursors.

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