mirror of
https://github.com/reactos/reactos.git
synced 2025-07-14 12:14:13 +00:00
- Use hack to prevent Explorer crash.
svn path=/trunk/; revision=26554
This commit is contained in:
parent
4b61211e6d
commit
d36cd41e29
1 changed files with 33 additions and 33 deletions
|
@ -465,8 +465,9 @@ NtGdiGetDIBits(HDC hDC,
|
||||||
DestBitmap = NULL;
|
DestBitmap = NULL;
|
||||||
if (Info->bmiHeader.biSize == sizeof(BITMAPINFOHEADER))
|
if (Info->bmiHeader.biSize == sizeof(BITMAPINFOHEADER))
|
||||||
{
|
{
|
||||||
DestBitmap = EngCreateBitmap( DestSize,
|
DestBitmap = EngCreateBitmap(DestSize,
|
||||||
DIB_GetDIBWidthBytes(DestSize.cx, Info->bmiHeader.biBitCount),
|
/* DIB_GetDIBWidthBytes(DestSize.cx, Info->bmiHeader.biBitCount), */
|
||||||
|
DestSize.cx * (Info->bmiHeader.biBitCount >> 3), /* HACK */
|
||||||
BitmapFormat(Info->bmiHeader.biBitCount, Info->bmiHeader.biCompression),
|
BitmapFormat(Info->bmiHeader.biBitCount, Info->bmiHeader.biCompression),
|
||||||
0 < Info->bmiHeader.biHeight ? 0 : BMF_TOPDOWN,
|
0 < Info->bmiHeader.biHeight ? 0 : BMF_TOPDOWN,
|
||||||
Bits);
|
Bits);
|
||||||
|
@ -476,14 +477,13 @@ NtGdiGetDIBits(HDC hDC,
|
||||||
{
|
{
|
||||||
BITMAPCOREHEADER* coreheader = (BITMAPCOREHEADER*) Info;
|
BITMAPCOREHEADER* coreheader = (BITMAPCOREHEADER*) Info;
|
||||||
|
|
||||||
DestBitmap = EngCreateBitmap( DestSize,
|
DestBitmap = EngCreateBitmap(DestSize,
|
||||||
DIB_GetDIBWidthBytes(DestSize.cx, coreheader->bcBitCount),
|
DIB_GetDIBWidthBytes(DestSize.cx, coreheader->bcBitCount),
|
||||||
BitmapFormat(coreheader->bcBitCount, BI_RGB),
|
BitmapFormat(coreheader->bcBitCount, BI_RGB),
|
||||||
0 < coreheader->bcHeight ? 0 : BMF_TOPDOWN,
|
0 < coreheader->bcHeight ? 0 : BMF_TOPDOWN,
|
||||||
Bits);
|
Bits);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(DestBitmap == NULL)
|
if(DestBitmap == NULL)
|
||||||
{
|
{
|
||||||
BITMAPOBJ_UnlockBitmap(BitmapObj);
|
BITMAPOBJ_UnlockBitmap(BitmapObj);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue