GetIconInfo did no correctly identify icons from cursors.

This commit is contained in:
Dave Hawkes 2000-07-09 12:16:58 +00:00 committed by Alexandre Julliard
parent fa861c2dd7
commit dbb6ab2261
1 changed files with 3 additions and 3 deletions

View File

@ -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
{