magically fix word 2002

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




whee!

CHANGELOG
* wine/objects/dc.c: Greg Turner <gmturner007@ameritech.net>
- CreateDCW: handle (nil, <string>, ...) gracefully
  if no driver found (Word 2002)

-- 
gmt

"If ye love wealth better than liberty, the tranquility
of servitude better than the animating contest of freedom,
go home from us in peace. We ask not your counsels or your
arms. Crouch down and lick the hands, which feed you. May
your chains set lightly upon you, and may posterity forget
that ye were our countrymen." 

-Samuel Adams

Index: objects/dc.c
===================================================================
RCS file: /home/wine/wine/objects/dc.c,v
retrieving revision 1.83
diff -u -r1.83 dc.c
--- objects/dc.c        24 Sep 2002 18:29:40 -0000      1.83
+++ objects/dc.c        2 Oct 2002 04:47:49 -0000
@@ -564,8 +564,13 @@

     GDI_CheckNotLock();

-    if (!device || !DRIVER_GetDriverName( device, buf, sizeof(buf) ))
-        strcpy(buf, driver);
+    if (!device || !DRIVER_GetDriverName( device, buf, sizeof(buf) )) {
+        if (!driver) {
+           ERR( "no device but no driver name" );
+           return 0;
+       } else
+            strcpy(buf, driver);
+    }

     if (!(funcs = DRIVER_load_driver( buf )))
     {



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux