Alexandre Julliard : winex11: Allow installing the event handler multiple times.

Alexandre Julliard julliard at winehq.org
Tue Apr 19 12:08:18 CDT 2011


Module: wine
Branch: master
Commit: 55bfd2ef0d5212db173c0b73cf01cbd48cabe431
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=55bfd2ef0d5212db173c0b73cf01cbd48cabe431

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Apr 19 17:17:48 2011 +0200

winex11: Allow installing the event handler multiple times.

---

 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 97c6f29..75e7d8d 100644
--- a/dlls/winex11.drv/event.c
+++ b/dlls/winex11.drv/event.c
@@ -186,7 +186,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( !handlers[type] );
+    assert( !handlers[type] || handlers[type] == handler );
     handlers[type] = handler;
     event_names[type] = name;
     TRACE("registered handler %p for event %d %s\n", handler, type, debugstr_a(name) );




More information about the wine-cvs mailing list