mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Don't release a mutex which wasn't acquired
svn path=/trunk/; revision=6857
This commit is contained in:
parent
06f996f723
commit
42158841dc
1 changed files with 2 additions and 3 deletions
|
@ -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: 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
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
|
@ -381,7 +381,7 @@ IntDestroyCurIconObject(PWINSTATION_OBJECT WinStaObject, HCURSOR hCursor)
|
||||||
PSYSTEM_CURSORINFO CurInfo;
|
PSYSTEM_CURSORINFO CurInfo;
|
||||||
|
|
||||||
if(!hCursor)
|
if(!hCursor)
|
||||||
goto fail;
|
return FALSE;
|
||||||
|
|
||||||
CurInfo = &WinStaObject->SystemCursor;
|
CurInfo = &WinStaObject->SystemCursor;
|
||||||
ExAcquireFastMutex(&CurInfo->CurIcons.LockHandles);
|
ExAcquireFastMutex(&CurInfo->CurIcons.LockHandles);
|
||||||
|
@ -426,7 +426,6 @@ IntDestroyCurIconObject(PWINSTATION_OBJECT WinStaObject, HCURSOR hCursor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fail:
|
|
||||||
ExReleaseFastMutex(&CurInfo->CurIcons.LockHandles);
|
ExReleaseFastMutex(&CurInfo->CurIcons.LockHandles);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue