pass wxIntPtr, not wxUIntPtr, to wxListCtrl::SortItems() callback as it's more compatible with the existing code assuming that this parameter is signed (as our own wxFileCtrl did)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1865,7 +1865,7 @@ bool wxListCtrl::ScrollList(int dx, int dy)
|
||||
struct wxInternalDataSort
|
||||
{
|
||||
wxListCtrlCompare user_fn;
|
||||
wxUIntPtr data;
|
||||
wxIntPtr data;
|
||||
};
|
||||
|
||||
int CALLBACK wxInternalDataCompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
|
||||
@@ -1882,7 +1882,7 @@ int CALLBACK wxInternalDataCompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM l
|
||||
|
||||
}
|
||||
|
||||
bool wxListCtrl::SortItems(wxListCtrlCompare fn, wxUIntPtr data)
|
||||
bool wxListCtrl::SortItems(wxListCtrlCompare fn, wxIntPtr data)
|
||||
{
|
||||
wxInternalDataSort internalData;
|
||||
internalData.user_fn = fn;
|
||||
|
Reference in New Issue
Block a user