summaryrefslogtreecommitdiff
path: root/dbeditorpp/settinglist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dbeditorpp/settinglist.cpp')
-rw-r--r--dbeditorpp/settinglist.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/dbeditorpp/settinglist.cpp b/dbeditorpp/settinglist.cpp
index e3fbd7e..9225fe0 100644
--- a/dbeditorpp/settinglist.cpp
+++ b/dbeditorpp/settinglist.cpp
@@ -733,13 +733,17 @@ static int test;
void SettingsListRightClick(HWND hwnd, WPARAM wParam,LPARAM lParam);
static int lastColumn = -1;
+struct SettingsSortParams{
+ HWND hList;
+ int column;
+};
+
INT_PTR CALLBACK SettingsCompare(LPARAM lParam1, LPARAM lParam2, LPARAM myParam)
{
SettingsSortParams params = *(SettingsSortParams *) myParam;
const int maxSize = 1024;
TCHAR text1[maxSize];
TCHAR text2[maxSize];
- long value1, value2;
ListView_GetItemText(params.hList, (int) lParam1, params.column, text1, maxSize);
ListView_GetItemText(params.hList, (int) lParam2, params.column, text2, maxSize);