commit | 2d00b08abd852a64f561893d474228de76cce673 | [log] [tgz] |
---|---|---|
author | Huw Davies <huw@codeweavers.com> | Fri Nov 14 03:30:18 2003 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Fri Nov 14 03:30:18 2003 +0000 |
tree | 4f4a9127f75f95741df38dc3be470c1fe58e2c82 | |
parent | 676164cc397cf5e7ec18d221d7a1441266916d05 [diff] |
Check for the existence of the driver CreateDIBSection before calling it.
diff --git a/objects/dib.c b/objects/dib.c index 7f3127f..604eb54 100644 --- a/objects/dib.c +++ b/objects/dib.c
@@ -902,7 +902,8 @@ if ((dc = DC_GetDCPtr( hdc ))) { - hbitmap = dc->funcs->pCreateDIBSection(dc->physDev, bmi, usage, bits, section, offset, ovr_pitch); + if(dc->funcs->pCreateDIBSection) + hbitmap = dc->funcs->pCreateDIBSection(dc->physDev, bmi, usage, bits, section, offset, ovr_pitch); GDI_ReleaseObj(hdc); }