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;
|
||||
char buf[300];
|
||||
|
||||
if ((!driver) && (!device))
|
||||
return 0;
|
||||
|
||||
GDI_CheckNotLock();
|
||||
|
||||
if (!device || !DRIVER_GetDriverName( device, buf, sizeof(buf) ))
|
||||
|
|
Loading…
Reference in New Issue