mouse_parser.c: Fix warning by properly checking return code

This commit is contained in:
Joel Sherrill committed 2013-09-21 15:41:50 -05:00
1 parent df74da01b7
commit 7071eb3ada
1 file changed
+1 -1
+1 -1
View File
@@ -299,7 +299,7 @@ void mouse_parser_enqueue( unsigned char *buffer, size_t size )
BUTTON bptr;
while( size-- ) {
if ( MOU_Data( *buffer++, &dx, &dy, &dz, &bptr ) ) {
if ( MOU_Data( *buffer++, &dx, &dy, &dz, &bptr ) == 1 ) {
struct MW_UID_MESSAGE m;
m.type = MV_UID_REL_POS;