Ticket #5876: hid-core.c.patch

File hid-core.c.patch, 421 bytes (added by anonymous, 8 years ago)

patch for hid-core.c

  • hid-core.c

    old new  
    215215                return -1; 
    216216        } 
    217217 
    218         if (parser->global.logical_maximum < parser->global.logical_minimum) { 
     218        if (parser->global.logical_maximum <= parser->global.logical_minimum) { 
    219219                dbg_hid("logical range invalid %d %d\n", parser->global.logical_minimum, parser->global.logical_maximum); 
    220220                return -1; 
    221221        }