mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +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;
|
||||
char buf[300];
|
||||
|
||||
if ((!driver) && (!device))
|
||||
return 0;
|
||||
|
||||
GDI_CheckNotLock();
|
||||
|
||||
if (!device || !DRIVER_GetDriverName( device, buf, sizeof(buf) ))
|
||||
|
Loading…
Reference in New Issue
Block a user