X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b678698047ca224e98952b5a5bd81f650becc51..4bc67cc550bcd9d5f93f88ae22a4f6ac7fafb5f7:/src/common/event.cpp diff --git a/src/common/event.cpp b/src/common/event.cpp index 11d0de9e51..de088d74f0 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -371,7 +371,9 @@ bool wxEvtHandler::SearchEventTable(wxEventTable& table, wxEvent& event) int i = 0; int commandId = event.GetId(); - while (table.entries[i].m_fn) + // BC++ doesn't like while (table.entries[i].m_fn) + + while (table.entries[i].m_fn != 0L) { if ((event.GetEventType() == table.entries[i].m_eventType) && (table.entries[i].m_id == -1 || // Match, if event spec says any id will do (id == -1)