Commit 3c41fabc authored by Phillip Ezolt's avatar Phillip Ezolt Committed by Alexandre Julliard

Fixed CreateDC to work properly when it is called with a device.

parent a5910f45
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment