properly read the cursor hotspots from the resource
Modified: trunk/reactos/lib/user32/windows/icon.c
_____
Modified: trunk/reactos/lib/user32/windows/icon.c
--- trunk/reactos/lib/user32/windows/icon.c 2005-12-27 15:33:31 UTC
(rev 20371)
+++ trunk/reactos/lib/user32/windows/icon.c 2005-12-27 16:19:07 UTC
(rev 20372)
@@ -246,11 +246,11 @@
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
{