diff options
Diffstat (limited to 'cpukit/libmisc/mouse/mouse_parser.c')
-rw-r--r-- | cpukit/libmisc/mouse/mouse_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/mouse/mouse_parser.c b/cpukit/libmisc/mouse/mouse_parser.c index 6ca871bf52..2831f64b95 100644 --- a/cpukit/libmisc/mouse/mouse_parser.c +++ b/cpukit/libmisc/mouse/mouse_parser.c @@ -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; |