user32: Allocate memory based on HICON instead of DWORD to fix 64 bit problems.
This commit is contained in:
parent
525696fe6c
commit
da8bb1c4a5
@ -1165,7 +1165,7 @@ static HCURSOR CURSORICON_CreateIconFromANI( const BYTE *bits, DWORD bits_size,
|
||||
|
||||
cursor = alloc_icon_handle( TRUE, header.num_steps );
|
||||
if (!cursor) return 0;
|
||||
frames = HeapAlloc( GetProcessHeap(), 0, sizeof(DWORD)*header.num_frames );
|
||||
frames = HeapAlloc( GetProcessHeap(), 0, sizeof(*frames) * header.num_frames );
|
||||
if (!frames)
|
||||
{
|
||||
free_icon_handle( cursor );
|
||||
|
Loading…
x
Reference in New Issue
Block a user