From a722995e623b5a8924ab4d96c91b505030a873db Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 26 Apr 2003 20:18:20 +0000 Subject: [PATCH] moving rollover check, was causing hangs upon termination in case ->top was 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/macnotfy.cpp | 4 ++-- src/mac/macnotfy.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mac/carbon/macnotfy.cpp b/src/mac/carbon/macnotfy.cpp index 36d7fb3e61..65e4377598 100644 --- a/src/mac/carbon/macnotfy.cpp +++ b/src/mac/carbon/macnotfy.cpp @@ -112,11 +112,11 @@ void wxMacRemoveAllNotifiersForData( wxMacNotifierTableRef table , void* data ) while ( e->top != index ) { - if ( index == kMaxEvents ) - index = 0 ; if ( e->data[index] == data ) e->data[index] = NULL ; index++ ; + if ( index == kMaxEvents ) + index = 0 ; } } diff --git a/src/mac/macnotfy.cpp b/src/mac/macnotfy.cpp index 36d7fb3e61..65e4377598 100644 --- a/src/mac/macnotfy.cpp +++ b/src/mac/macnotfy.cpp @@ -112,11 +112,11 @@ void wxMacRemoveAllNotifiersForData( wxMacNotifierTableRef table , void* data ) while ( e->top != index ) { - if ( index == kMaxEvents ) - index = 0 ; if ( e->data[index] == data ) e->data[index] = NULL ; index++ ; + if ( index == kMaxEvents ) + index = 0 ; } } -- 2.47.2