mirror of
https://github.com/reactos/reactos.git
synced 2025-07-14 21:34:14 +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
|
@ -466,7 +466,8 @@ NtGdiGetDIBits(HDC hDC,
|
||||||
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);
|
||||||
|
@ -483,7 +484,6 @@ NtGdiGetDIBits(HDC hDC,
|
||||||
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