[SHELL32][REGEDIT][MSCONFIG_NEW] Correctly check for presence of list view sort header.

This commit is contained in:
Thomas Faber 2017-10-27 12:32:26 +02:00
parent e3d000c30e
commit ba8f75557a
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
3 changed files with 3 additions and 3 deletions

View file

@ -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);