diff -u -r lirc-0.7.0/daemons/hw_devinput.c lirc-0.7.0-patched/daemons/hw_devinput.c
--- lirc-0.7.0/daemons/hw_devinput.c	2004-10-09 16:35:35.000000000 +0100
+++ lirc-0.7.0-patched/daemons/hw_devinput.c	2005-02-20 15:50:23.000000000 +0000
@@ -99,7 +99,8 @@
 {
 	logprintf(LOG_DEBUG, "devinput_decode");
 
-        if(!map_code(remote,prep,codep,postp,
+        if(!(code & 0x80000000) ||
+	   !map_code(remote,prep,codep,postp,
                      0,0,hw_devinput.code_length,code,0,0))
         {
                 return(0);
