mirror of
https://github.com/reactos/reactos.git
synced 2024-11-28 05:53:31 +08:00
[SHELL32][REGEDIT][MSCONFIG_NEW] Correctly check for presence of list view sort header.
This commit is contained in:
parent
e3d000c30e
commit
ba8f75557a
@ -49,7 +49,7 @@ ListView_SortEx(HWND hListView,
|
||||
BOOL bSortAsc;
|
||||
Sort sort;
|
||||
|
||||
if ((GetWindowLongPtr(hListView, GWL_STYLE) & ~LVS_NOSORTHEADER) == 0)
|
||||
if (GetWindowLongPtr(hListView, GWL_STYLE) & LVS_NOSORTHEADER)
|
||||
return TRUE;
|
||||
|
||||
hHeader = ListView_GetHeader(hListView);
|
||||
|
@ -478,7 +478,7 @@ static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSor
|
||||
|
||||
static BOOL ListView_Sort(HWND hListView, int iSortingColumn, int iSortedColumn)
|
||||
{
|
||||
if ( (GetWindowLongPtr(hListView, GWL_STYLE) & ~LVS_NOSORTHEADER) &&
|
||||
if (!(GetWindowLongPtr(hListView, GWL_STYLE) & LVS_NOSORTHEADER) &&
|
||||
(iSortingColumn >= 0) )
|
||||
{
|
||||
BOOL bSortAscending;
|
||||
|
@ -698,7 +698,7 @@ BOOL CDefView::_Sort()
|
||||
HWND hHeader;
|
||||
HDITEM hColumn;
|
||||
|
||||
if ((m_ListView.GetWindowLongPtr(GWL_STYLE) & ~LVS_NOSORTHEADER) == 0)
|
||||
if (m_ListView.GetWindowLongPtr(GWL_STYLE) & LVS_NOSORTHEADER)
|
||||
return TRUE;
|
||||
|
||||
hHeader = (HWND)m_ListView.SendMessage(LVM_GETHEADER, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user