Commit da8bb1c4 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

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

parent 525696fe
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment