Author: tkreuzer Date: Sun Sep 30 21:21:03 2012 New Revision: 57444
URL: http://svn.reactos.org/svn/reactos?rev=57444&view=rev Log: [WIN32K] Hack around completely broken GreGetDIBitsInternal. Fixes bugcheck caused by gdi32_winetest bitmap.
Modified: trunk/reactos/win32ss/gdi/ntgdi/dibobj.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/dibobj.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/dibobj.c?... ============================================================================== --- trunk/reactos/win32ss/gdi/ntgdi/dibobj.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/gdi/ntgdi/dibobj.c [iso-8859-1] Sun Sep 30 21:21:03 2012 @@ -1020,6 +1020,10 @@ /* Use maximum size */ cjMaxInfo = min(cjMaxInfo, sizeof(BITMAPV5HEADER) + 256 * sizeof(RGBQUAD));
+ // HACK: the underlying code sucks and doesn't care for the size, so we + // give it the maximum ever needed + cjMaxInfo = sizeof(BITMAPV5HEADER) + 256 * sizeof(RGBQUAD); + /* Allocate a buffer the bitmapinfo */ pbmi = ExAllocatePoolWithTag(PagedPool, cjMaxInfo, 'imBG'); if (!pbmi)