mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +00:00
NtGdiCreateDIBitmap
fixed 2 more hiden bugs (cause some crash/bsod) but not the bug I am searching for. svn path=/trunk/; revision=24288
This commit is contained in:
parent
9e939c11e9
commit
2e3507e05d
|
@ -793,7 +793,16 @@ HBITMAP STDCALL NtGdiCreateDIBitmap(HDC hDc, const BITMAPINFOHEADER *Header,
|
|||
PDC Dc;
|
||||
HBITMAP Bmp;
|
||||
|
||||
|
||||
if (Header == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (Header->biSize == 0)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (NULL == hDc)
|
||||
{
|
||||
BITMAPINFOHEADER *change_Header = (BITMAPINFOHEADER *)Header;
|
||||
|
|
Loading…
Reference in a new issue