(Fw32_register_hot_key): Don't try to register

hot key if w32_parse_hot_key returned nil.
This commit is contained in:
Juanma Barranquero 2007-11-13 12:55:45 +00:00
parent b07a2d9cdb
commit 1eb8d617f0

View file

@ -8233,7 +8233,7 @@ The return value is the hotkey-id if registered, otherwise nil. */)
{
key = w32_parse_hot_key (key);
if (NILP (Fmemq (key, w32_grabbed_keys)))
if (!NILP (key) && NILP (Fmemq (key, w32_grabbed_keys)))
{
/* Reuse an empty slot if possible. */
Lisp_Object item = Fmemq (Qnil, w32_grabbed_keys);