https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f4fedb936eae60e7b9847…
commit f4fedb936eae60e7b9847339080cfd2604d4cd82
Author: Alexander Shaposhnikov <sanchaez(a)reactos.org>
AuthorDate: Fri Feb 9 00:53:31 2018 +0200
Commit: Alexander Shaposhnikov <sanchaez(a)reactos.org>
CommitDate: Fri Feb 9 00:53:31 2018 +0200
[RAPPS] Fix column sorting
CORE-13793
---
base/applications/rapps/gui.cpp | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/base/applications/rapps/gui.cpp b/base/applications/rapps/gui.cpp
index c4e76b35d3..ed2c3b8264 100644
--- a/base/applications/rapps/gui.cpp
+++ b/base/applications/rapps/gui.cpp
@@ -539,12 +539,7 @@ public:
GetItemText(Index, iSubItem, Item2.GetBuffer(MAX_STR_LEN), MAX_STR_LEN);
Item2.ReleaseBuffer();
- if (bIsAscending)
- return Item2 == Item1;
- else
- return Item1 == Item2;
-
- return 0;
+ return bIsAscending ? Item1.Compare(Item2) : Item2.Compare(Item1);
}
HWND Create(HWND hwndParent)