mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
Release mutex on error exit
svn path=/trunk/; revision=7884
This commit is contained in:
parent
53623ae9dc
commit
f1253083e4
|
@ -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: hotkey.c,v 1.5 2003/11/23 12:24:21 weiden Exp $
|
/* $Id: hotkey.c,v 1.6 2004/01/26 23:29:23 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -238,6 +238,7 @@ NtUserRegisterHotKey(HWND hWnd,
|
||||||
/* Check for existing hotkey */
|
/* Check for existing hotkey */
|
||||||
if (IsHotKey (WinStaObject, fsModifiers, vk))
|
if (IsHotKey (WinStaObject, fsModifiers, vk))
|
||||||
{
|
{
|
||||||
|
ExReleaseFastMutex (&WinStaObject->HotKeyListLock);
|
||||||
IntReleaseWindowObject(Window);
|
IntReleaseWindowObject(Window);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue