diff --git a/objects/dc.c b/objects/dc.c index a67a026f622..fc496b34f6e 100644 --- a/objects/dc.c +++ b/objects/dc.c @@ -559,13 +559,13 @@ HDC WINAPI CreateDCA( LPCSTR driver, LPCSTR device, LPCSTR output, const DC_FUNCTIONS *funcs; char buf[300]; - if ((!driver) && (!device)) - return 0; - GDI_CheckNotLock(); if (!device || !DRIVER_GetDriverName( device, buf, sizeof(buf) )) + { + if (!driver) return 0; strcpy(buf, driver); + } if (!(funcs = DRIVER_load_driver( buf ))) {