"Fix" explorer crash.

svn path=/trunk/; revision=26508
This commit is contained in:
Dmitry Gorbachev 2007-04-25 23:54:45 +00:00
parent 96d2b5521b
commit 42f1c2363d

View file

@ -735,7 +735,7 @@ CopyImage(
/* Fill in biSizeImage */
GetDIBits(dc, hnd, 0, ds.dsBm.bmHeight, NULL, bi, DIB_RGB_COLORS);
bits = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, bi->bmiHeader.biSizeImage);
bits = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, bi->bmiHeader.biSizeImage * 2); /* HACK */
if (bits)
{