From 59ca8af658ee8f633df7fc7cde019549c3e735f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Mon, 8 Dec 2003 22:51:11 +0000 Subject: [PATCH] Release mutex if handle not found svn path=/trunk/; revision=6924 --- reactos/subsys/win32k/objects/cursoricon.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/objects/cursoricon.c b/reactos/subsys/win32k/objects/cursoricon.c index ff2a448c001..1f0be2a481e 100644 --- a/reactos/subsys/win32k/objects/cursoricon.c +++ b/reactos/subsys/win32k/objects/cursoricon.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: cursoricon.c,v 1.28 2003/12/07 19:29:33 weiden Exp $ */ +/* $Id: cursoricon.c,v 1.29 2003/12/08 22:51:11 gvg Exp $ */ #undef WIN32_LEAN_AND_MEAN @@ -277,7 +277,7 @@ IntGetCurIconObject(PWINSTATION_OBJECT WinStaObject, HICON hIcon) { PCURICONS Cursors; PCURICON_OBJECT CurIconObject = NULL; - + Cursors = &WinStaObject->SystemCursor.CurIcons; ExAcquireFastMutex(&Cursors->LockHandles); @@ -423,7 +423,10 @@ IntDestroyCurIconObject(PWINSTATION_OBJECT WinStaObject, HCURSOR hCursor) { /* no more handles */ if(++c >= CurInfo->CurIcons.Count) + { + ExReleaseFastMutex(&CurInfo->CurIcons.LockHandles); return FALSE; + } } }