commit | 3c41fabc6a618f258341e4e9d86b283b186707ac | [log] [tgz] |
---|---|---|
author | Phillip Ezolt <ezolt@perf.zko.dec.com> | Tue Aug 01 02:15:34 2000 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Tue Aug 01 02:15:34 2000 +0000 |
tree | 1ec68e1d6534e21a337a2337afccba00dc31d41d | |
parent | a5910f45bd81b08c0e5c6071df772222b9f5ec86 [diff] [blame] |
Fixed CreateDC to work properly when it is called with a device.
diff --git a/objects/dc.c b/objects/dc.c index 26ebd8c..4307e1a 100644 --- a/objects/dc.c +++ b/objects/dc.c
@@ -511,9 +511,7 @@ const DC_FUNCTIONS *funcs; char buf[300]; - if (device) { - if(!DRIVER_GetDriverName( device, buf, sizeof(buf) )) return 0; - } else + if (!device || !DRIVER_GetDriverName( device, buf, sizeof(buf) )) strcpy(buf, driver); if (!(funcs = DRIVER_FindDriver( buf ))) return 0;