mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:22:58 +00:00
Release mutex if handle not found
svn path=/trunk/; revision=6924
This commit is contained in:
parent
61fe50f6f6
commit
59ca8af658
1 changed files with 5 additions and 2 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.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
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
|
@ -423,9 +423,12 @@ IntDestroyCurIconObject(PWINSTATION_OBJECT WinStaObject, HCURSOR hCursor)
|
||||||
{
|
{
|
||||||
/* no more handles */
|
/* no more handles */
|
||||||
if(++c >= CurInfo->CurIcons.Count)
|
if(++c >= CurInfo->CurIcons.Count)
|
||||||
|
{
|
||||||
|
ExReleaseFastMutex(&CurInfo->CurIcons.LockHandles);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ExReleaseFastMutex(&CurInfo->CurIcons.LockHandles);
|
ExReleaseFastMutex(&CurInfo->CurIcons.LockHandles);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue