Create a new DC in GetDCEx when none are available.

This commit is contained in:
Stephane Lussier 1999-03-12 17:04:28 +00:00 committed by Alexandre Julliard
parent 986de4b12a
commit 0d5fe58361
1 changed files with 6 additions and 0 deletions

View File

@ -688,6 +688,12 @@ HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags )
}
}
if (!dce) dce = (dceEmpty) ? dceEmpty : dceUnused;
/* if there's no dce empty or unused, allocate a new one */
if (!dce)
{
dce = DCE_AllocDCE( 0, DCE_CACHE_DC );
}
}
else
{