mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 14:03:31 +00:00
- Fix crash in gdi32 bitmap winetest
svn path=/trunk/; revision=41014
This commit is contained in:
parent
ccf3aa7ce8
commit
822db26efe
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,6 @@ DIB_GetBitmapInfo(const BITMAPINFOHEADER *header,
|
||||||
PLONG compr,
|
PLONG compr,
|
||||||
PLONG size )
|
PLONG size )
|
||||||
{
|
{
|
||||||
|
|
||||||
if (header->biSize == sizeof(BITMAPCOREHEADER))
|
if (header->biSize == sizeof(BITMAPCOREHEADER))
|
||||||
{
|
{
|
||||||
BITMAPCOREHEADER *core = (BITMAPCOREHEADER *)header;
|
BITMAPCOREHEADER *core = (BITMAPCOREHEADER *)header;
|
||||||
|
@ -468,6 +467,8 @@ CreateDIBitmap( HDC hDC,
|
||||||
PVOID pvSafeBits = NULL;
|
PVOID pvSafeBits = NULL;
|
||||||
HBITMAP hBmp;
|
HBITMAP hBmp;
|
||||||
|
|
||||||
|
if (!Header) return 0;
|
||||||
|
|
||||||
pConvertedInfo = ConvertBitmapInfo(Data, ColorUse,
|
pConvertedInfo = ConvertBitmapInfo(Data, ColorUse,
|
||||||
&ConvertedInfoSize, FALSE);
|
&ConvertedInfoSize, FALSE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue