From 42158841dc60622a6a4ab72941eae3259b7280a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Wed, 3 Dec 2003 21:38:14 +0000 Subject: [PATCH] Don't release a mutex which wasn't acquired svn path=/trunk/; revision=6857 --- reactos/subsys/win32k/objects/cursoricon.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reactos/subsys/win32k/objects/cursoricon.c b/reactos/subsys/win32k/objects/cursoricon.c index 693b22ebd99..99d71abd851 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.26 2003/11/23 12:08:00 weiden Exp $ */ +/* $Id: cursoricon.c,v 1.27 2003/12/03 21:38:14 gvg Exp $ */ #undef WIN32_LEAN_AND_MEAN @@ -381,7 +381,7 @@ IntDestroyCurIconObject(PWINSTATION_OBJECT WinStaObject, HCURSOR hCursor) PSYSTEM_CURSORINFO CurInfo; if(!hCursor) - goto fail; + return FALSE; CurInfo = &WinStaObject->SystemCursor; ExAcquireFastMutex(&CurInfo->CurIcons.LockHandles); @@ -426,7 +426,6 @@ IntDestroyCurIconObject(PWINSTATION_OBJECT WinStaObject, HCURSOR hCursor) } } - fail: ExReleaseFastMutex(&CurInfo->CurIcons.LockHandles); return FALSE; }