Commit 8ba0c715 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

CreateDCA should return failure if both driver and device are NULL.

parent 0477d7de
......@@ -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) ))
......
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