user32: Allocate memory based on HICON instead of DWORD to fix 64 bit problems.

This commit is contained in:
Bruno Jesus 2015-01-17 20:51:07 -02:00 committed by Alexandre Julliard
parent 525696fe6c
commit da8bb1c4a5

View File

@ -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 );