properly read the cursor hotspots from the resource

svn path=/trunk/; revision=20372
This commit is contained in:
Thomas Bluemel 2005-12-27 16:19:07 +00:00
parent 57ce730b6a
commit 2cfbdf83cd

View file

@ -246,11 +246,11 @@ CreateIconFromResourceEx(
if (! fIcon)
{
wXHotspot = (WORD)*pbIconBits;
pbIconBits+=2;
wYHotspot = (WORD)*pbIconBits;
pbIconBits+=2;
cbIconBits-=4;
wXHotspot = *(WORD*)pbIconBits;
pbIconBits+=sizeof(WORD);
wYHotspot = *(WORD*)pbIconBits;
pbIconBits+=sizeof(WORD);
cbIconBits-=2*sizeof(WORD);
}
else
{