Hi all, CreateDCA should return failure if both driver and device are NULL instead of just crashing. Fixes *one* problem with Microsoft Works. (in other words: "Microsoft Works doesn't" ;-) This is a patch that implements what has been discussed years ago on c.e.m.w. already. -- Andreas Mohr Stauferstr. 6, D-71272 Renningen, Germany
Determining best CVS host... Using CVSROOT :pserver:cvs@rhlx01.fht-esslingen.de:/home/wine Index: objects/dc.c =================================================================== RCS file: /home/wine/wine/objects/dc.c,v retrieving revision 1.77 diff -u -r1.77 dc.c --- objects/dc.c 10 Jun 2002 22:52:47 -0000 1.77 +++ objects/dc.c 20 Jul 2002 14:30:58 -0000 @@ -586,6 +586,9 @@ const DC_FUNCTIONS *funcs; char buf[300]; + if ((!driver) && (!device)) + return 0; + GDI_CheckNotLock(); if (!device || !DRIVER_GetDriverName( device, buf, sizeof(buf) ))