mirror of
https://github.com/reactos/wine.git
synced 2025-02-22 13:53:38 +00:00
Fixed CreateDC to work properly when it is called with a device.
This commit is contained in:
parent
a5910f45bd
commit
3c41fabc6a
@ -511,9 +511,7 @@ HDC16 WINAPI CreateDC16( LPCSTR driver, LPCSTR device, LPCSTR output,
|
|||||||
const DC_FUNCTIONS *funcs;
|
const DC_FUNCTIONS *funcs;
|
||||||
char buf[300];
|
char buf[300];
|
||||||
|
|
||||||
if (device) {
|
if (!device || !DRIVER_GetDriverName( device, buf, sizeof(buf) ))
|
||||||
if(!DRIVER_GetDriverName( device, buf, sizeof(buf) )) return 0;
|
|
||||||
} else
|
|
||||||
strcpy(buf, driver);
|
strcpy(buf, driver);
|
||||||
|
|
||||||
if (!(funcs = DRIVER_FindDriver( buf ))) return 0;
|
if (!(funcs = DRIVER_FindDriver( buf ))) return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user