From 42f1c2363d86d649ee77cd8ca2d22da693595d9b Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Wed, 25 Apr 2007 23:54:45 +0000 Subject: [PATCH] "Fix" explorer crash. svn path=/trunk/; revision=26508 --- reactos/dll/win32/user32/windows/bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/user32/windows/bitmap.c b/reactos/dll/win32/user32/windows/bitmap.c index 3124929186d..b9016a76986 100644 --- a/reactos/dll/win32/user32/windows/bitmap.c +++ b/reactos/dll/win32/user32/windows/bitmap.c @@ -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) {