From 3c41fabc6a618f258341e4e9d86b283b186707ac Mon Sep 17 00:00:00 2001 From: Phillip Ezolt Date: Tue, 1 Aug 2000 02:15:34 +0000 Subject: [PATCH] Fixed CreateDC to work properly when it is called with a device. --- objects/dc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/objects/dc.c b/objects/dc.c index 26ebd8c8265..4307e1aa7af 100644 --- a/objects/dc.c +++ b/objects/dc.c @@ -511,9 +511,7 @@ HDC16 WINAPI CreateDC16( LPCSTR driver, LPCSTR device, LPCSTR output, 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;