mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-18 11:48:07 +00:00
CreateDCA should return failure if both driver and device are NULL.
This commit is contained in:
parent
0477d7dea5
commit
8ba0c715c7
|
@ -586,6 +586,9 @@ HDC WINAPI CreateDCA( LPCSTR driver, LPCSTR device, LPCSTR output,
|
||||||
const DC_FUNCTIONS *funcs;
|
const DC_FUNCTIONS *funcs;
|
||||||
char buf[300];
|
char buf[300];
|
||||||
|
|
||||||
|
if ((!driver) && (!device))
|
||||||
|
return 0;
|
||||||
|
|
||||||
GDI_CheckNotLock();
|
GDI_CheckNotLock();
|
||||||
|
|
||||||
if (!device || !DRIVER_GetDriverName( device, buf, sizeof(buf) ))
|
if (!device || !DRIVER_GetDriverName( device, buf, sizeof(buf) ))
|
||||||
|
|
Loading…
Reference in a new issue