Commits

Brian Curtin  committed 34744ef

Fix PREFAST warning about constant evaluation - should have been bitwise-AND

  • Participants
  • Parent commits 1e58bb8

Comments (0)

Files changed (1)

File Associator/main.c

             NMLISTVIEW * p = (NMLISTVIEW *) lParam;
 
             if ((p->hdr.code == LVN_ITEMCHANGED) &&
-                (p->uNewState && LVIS_SELECTED)) {
+                (p->uNewState & LVIS_SELECTED)) {
                 hChild = GetDlgItem(hDlg, IDOK);
                 selected_index = p->iItem;
                 EnableWindow(hChild, selected_index >= 0);