# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1672460987 0 # Node ID cacb6610abfc87acbf80ba18d18fe115a4d31630 # Parent 75f6e21f5a02b8b0255bc1031cfcf78129635591 C++: Fix incorrect parameter order in Container/Tree select causing crashes. diff -r 75f6e21f5a02 -r cacb6610abfc dw.hpp --- a/dw.hpp Sat Dec 31 03:12:38 2022 +0000 +++ b/dw.hpp Sat Dec 31 04:29:47 2022 +0000 @@ -1427,7 +1427,7 @@ #endif int (*_ConnectItemSelectOld)(ObjectView *, HTREEITEM, char *, void *); int (*_ConnectItemContextOld)(ObjectView *, char *, int, int, void *); - static int _OnItemSelect(HWND window, HTREEITEM item, char *text, void *itemdata, void *data) { + static int _OnItemSelect(HWND window, HTREEITEM item, char *text, void *data, void *itemdata) { ObjectView *classptr = reinterpret_cast(data); #ifdef DW_LAMBDA if(classptr->_ConnectItemSelect)