Fix (flag & (DS_OK | DS_VALIDBUTTON))