regedit: When sorting by key type consistently compare types.

Otherwise when sorting by type for key with same type list get sorted by
name.
This commit is contained in:
Nikolay Sivov 2015-09-15 00:02:32 +03:00 committed by Alexandre Julliard
parent e428884c0c
commit a72482fd39
1 changed files with 1 additions and 1 deletions

View File

@ -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 */