Check for the existence of the driver CreateDIBSection before calling

it.
This commit is contained in:
Huw Davies 2003-11-14 03:30:18 +00:00 committed by Alexandre Julliard
parent 676164cc39
commit 2d00b08abd
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}