mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 06:06:27 +00:00
properly read the cursor hotspots from the resource
svn path=/trunk/; revision=20372
This commit is contained in:
parent
57ce730b6a
commit
2cfbdf83cd
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue