Nikolay Sivov : regedit: When sorting by key type consistently compare types.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Sep 15 09:50:49 CDT 2015
Module: wine
Branch: master
Commit: a72482fd39ade6b846c52d9816f3b8e889467b2c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a72482fd39ade6b846c52d9816f3b8e889467b2c
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Sep 15 00:02:32 2015 +0300
regedit: When sorting by key type consistently compare types.
Otherwise when sorting by type for key with same type list get sorted by
name.
---
programs/regedit/listview.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c
index d11d859..c0119ff 100644
--- a/programs/regedit/listview.c
+++ b/programs/regedit/listview.c
@@ -333,7 +333,7 @@ static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSor
if (g_columnToSort == ~0U)
g_columnToSort = 0;
- if (g_columnToSort == 1 && l->dwValType != r->dwValType)
+ if (g_columnToSort == 1)
return g_invertSort ? (int)r->dwValType - (int)l->dwValType : (int)l->dwValType - (int)r->dwValType;
if (g_columnToSort == 2) {
/* FIXME: Sort on value */
More information about the wine-cvs
mailing list