Skip to content
Snippets Groups Projects
Commit 0d5fe583 authored by Stephane Lussier's avatar Stephane Lussier Committed by Alexandre Julliard
Browse files

Create a new DC in GetDCEx when none are available.

parent 986de4b1
No related branches found
No related tags found
No related merge requests found
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment