Patch by Filip Navara.

- Unlock DC in error case.

svn path=/trunk/; revision=7663
This commit is contained in:
Gé van Geldorp 2004-01-15 21:03:05 +00:00
parent a51baa3efc
commit c15141cd94

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: brush.c,v 1.30 2003/12/12 15:47:37 weiden Exp $ /* $Id: brush.c,v 1.31 2004/01/15 21:03:05 gvg Exp $
*/ */
@ -378,6 +378,7 @@ BOOL STDCALL NtGdiPatBlt(HDC hDC,
if (NULL == BrushObj) if (NULL == BrushObj)
{ {
SetLastWin32Error(ERROR_INVALID_HANDLE); SetLastWin32Error(ERROR_INVALID_HANDLE);
DC_UnlockDc(hDC);
return FALSE; return FALSE;
} }