[PATCH 1/2] regedit: Block sorting by key value

Nikolay Sivov nsivov at codeweavers.com
Mon Sep 14 16:10:12 CDT 2015


Right attempt to sort by value sorts by name always, which is not expected.

-------------- next part --------------
>From 6d148c9738a3350b71a1576a1abf6950850521bd Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue, 15 Sep 2015 00:01:21 +0300
Subject: [PATCH 1/2] regedit: Block sorting by key value

---
 programs/regedit/listview.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c
index 6559116..d11d859 100644
--- a/programs/regedit/listview.c
+++ b/programs/regedit/listview.c
@@ -337,6 +337,7 @@ static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSor
         return g_invertSort ? (int)r->dwValType - (int)l->dwValType : (int)l->dwValType - (int)r->dwValType;
     if (g_columnToSort == 2) {
         /* FIXME: Sort on value */
+        return 0;
     }
     return g_invertSort ? lstrcmpiW(r->name, l->name) : lstrcmpiW(l->name, r->name);
 }
-- 
2.1.4



More information about the wine-patches mailing list