Commit 1e599e7f authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

Eliminate useless HeapAlloc() casts.

parent 3ea748b7
...@@ -735,8 +735,8 @@ static HICON CURSORICON_CreateFromResource( HMODULE16 hModule, HGLOBAL16 hObj, L ...@@ -735,8 +735,8 @@ static HICON CURSORICON_CreateFromResource( HMODULE16 hModule, HGLOBAL16 hObj, L
* BYTE icAND[] // DIB bits for AND mask * BYTE icAND[] // DIB bits for AND mask
*/ */
if ((pInfo = (BITMAPINFO *)HeapAlloc( GetProcessHeap(), 0, if ((pInfo = HeapAlloc( GetProcessHeap(), 0,
max(size, sizeof(BITMAPINFOHEADER) + 2*sizeof(RGBQUAD))))) max(size, sizeof(BITMAPINFOHEADER) + 2*sizeof(RGBQUAD)))))
{ {
memcpy( pInfo, bmi, size ); memcpy( pInfo, bmi, size );
pInfo->bmiHeader.biHeight /= 2; pInfo->bmiHeader.biHeight /= 2;
......
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