mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 12:43:05 +00:00
[WIN32K]
Hack around completely broken GreGetDIBitsInternal. Fixes bugcheck caused by gdi32_winetest bitmap. svn path=/trunk/; revision=57444
This commit is contained in:
parent
54babc294b
commit
aec6311fb5
1 changed files with 4 additions and 0 deletions
|
@ -1020,6 +1020,10 @@ NtGdiGetDIBitsInternal(
|
||||||
/* Use maximum size */
|
/* Use maximum size */
|
||||||
cjMaxInfo = min(cjMaxInfo, sizeof(BITMAPV5HEADER) + 256 * sizeof(RGBQUAD));
|
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 */
|
/* Allocate a buffer the bitmapinfo */
|
||||||
pbmi = ExAllocatePoolWithTag(PagedPool, cjMaxInfo, 'imBG');
|
pbmi = ExAllocatePoolWithTag(PagedPool, cjMaxInfo, 'imBG');
|
||||||
if (!pbmi)
|
if (!pbmi)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue