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

This commit is contained in:
Andreas Mohr 2002-07-20 20:07:44 +00:00 committed by Alexandre Julliard
parent 0477d7dea5
commit 8ba0c715c7
1 changed files with 3 additions and 0 deletions

View File

@ -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) ))