Check for the existence of the driver CreateDIBSection before calling
it.
This commit is contained in:
parent
676164cc39
commit
2d00b08abd
|
@ -902,6 +902,7 @@ HBITMAP DIB_CreateDIBSection(HDC hdc, BITMAPINFO *bmi, UINT usage,
|
|||
|
||||
if ((dc = DC_GetDCPtr( hdc )))
|
||||
{
|
||||
if(dc->funcs->pCreateDIBSection)
|
||||
hbitmap = dc->funcs->pCreateDIBSection(dc->physDev, bmi, usage, bits, section, offset, ovr_pitch);
|
||||
GDI_ReleaseObj(hdc);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue