Commit c3775d82 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

cryptui: Sort certificates by subject name by default.

parent 3a7d3fcc
......@@ -348,6 +348,8 @@ static CERT_ENHKEY_USAGE *create_advanced_filter(void)
return advancedUsage;
}
static int CALLBACK cert_mgr_sort_by_subject(LPARAM lp1, LPARAM lp2, LPARAM lp);
static void show_store_certs(HWND hwnd, HCERTSTORE store)
{
HWND lv = GetDlgItem(hwnd, IDC_MGR_CERTS);
......@@ -443,6 +445,8 @@ static void show_store_certs(HWND hwnd, HCERTSTORE store)
HeapFree(GetProcessHeap(), 0, advanced->rgpszUsageIdentifier);
HeapFree(GetProcessHeap(), 0, advanced);
}
SendMessageW(lv, LVM_SORTITEMSEX, (WPARAM)lv,
(LPARAM)cert_mgr_sort_by_subject);
}
static const WCHAR my[] = { 'M','y',0 };
......
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