mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +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
1 changed files with 10 additions and 1 deletions
|
@ -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