Marcus Meissner : winex11.drv: Assertion was 1 off (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon May 2 14:16:13 CDT 2011
Module: wine
Branch: master
Commit: ea85bc950999d303bdc0a0706787e9a6d5003025
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ea85bc950999d303bdc0a0706787e9a6d5003025
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sun May 1 14:51:29 2011 +0200
winex11.drv: Assertion was 1 off (Coverity).
---
dlls/winex11.drv/event.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c
index acaf49c..3af56f8 100644
--- a/dlls/winex11.drv/event.c
+++ b/dlls/winex11.drv/event.c
@@ -190,7 +190,7 @@ static inline void free_event_data( XEvent *event )
*/
void X11DRV_register_event_handler( int type, x11drv_event_handler handler, const char *name )
{
- assert( type <= MAX_EVENT_HANDLERS );
+ assert( type < MAX_EVENT_HANDLERS );
assert( !handlers[type] || handlers[type] == handler );
handlers[type] = handler;
event_names[type] = name;
More information about the wine-cvs
mailing list