Skip to content
Snippets Groups Projects
Commit a72482fd authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard
Browse files

regedit: When sorting by key type consistently compare types.

Otherwise when sorting by type for key with same type list get sorted by
name.
parent e428884c
No related branches found
Tags wine-20001222
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment