[ros-diffs] [weiden] 20372: properly read the cursor hotspots from
the resource
weiden at svn.reactos.com
weiden at svn.reactos.com
Tue Dec 27 17:19:17 CET 2005
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
{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051227/4a3d95a4/attachment.html
More information about the Ros-diffs
mailing list