dib: check for createdibsection
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Thu Nov 13 08:09:11 CST 2003
Huw Davies <huw at codeweavers.com>
Check for the existence of the driver CreateDIBSection before calling
it.
--
Huw Davies
huw at codeweavers.com
Index: objects/dib.c
===================================================================
RCS file: /home/wine/wine/objects/dib.c,v
retrieving revision 1.78
diff -u -r1.78 dib.c
--- objects/dib.c 12 Nov 2003 22:42:26 -0000 1.78
+++ objects/dib.c 13 Nov 2003 14:06:41 -0000
@@ -902,7 +902,10 @@
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);
+ else
+ FIXME("No CreateDIBSection support for this driver.\n");
GDI_ReleaseObj(hdc);
}
More information about the wine-patches
mailing list