diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index 06aae2979a..4eb467f503 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -310,7 +310,7 @@ void wxListBox::DoSetItems(const wxArrayString& choices, void** clientData) if ( clientData ) { #if wxUSE_OWNER_DRAWN - wxASSERT_MSG(clientData[ui] == NULL, + wxASSERT_MSG(clientData[i] == NULL, wxT("Can't use client data with owner-drawn listboxes")); #else // !wxUSE_OWNER_DRAWN ListBox_SetItemData(GetHwnd(), i, clientData[i]);