Commit a72482fd authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment