comctl32: Avoid TRUE:FALSE conditional expressions.
This commit is contained in:
parent
d3488325ae
commit
3684578a9f
|
@ -1590,7 +1590,7 @@ static LRESULT COMBOEX_NotifyFormat (COMBOEX_INFO *infoPtr, LPARAM lParam)
|
|||
if (lParam == NF_REQUERY) {
|
||||
INT i = SendMessageW(infoPtr->hwndNotify,
|
||||
WM_NOTIFYFORMAT, (WPARAM)infoPtr->hwndSelf, NF_QUERY);
|
||||
infoPtr->NtfUnicode = (i == NFR_UNICODE) ? 1 : 0;
|
||||
infoPtr->NtfUnicode = (i == NFR_UNICODE);
|
||||
}
|
||||
return infoPtr->NtfUnicode ? NFR_UNICODE : NFR_ANSI;
|
||||
}
|
||||
|
|
|
@ -3385,7 +3385,7 @@ REBAR_NotifyFormat (REBAR_INFO *infoPtr, LPARAM cmd)
|
|||
ERR("wrong response to WM_NOTIFYFORMAT (%d), assuming ANSI\n", i);
|
||||
i = NFR_ANSI;
|
||||
}
|
||||
infoPtr->bUnicode = (i == NFR_UNICODE) ? 1 : 0;
|
||||
infoPtr->bUnicode = (i == NFR_UNICODE);
|
||||
return (LRESULT)i;
|
||||
}
|
||||
return (LRESULT)((infoPtr->bUnicode) ? NFR_UNICODE : NFR_ANSI);
|
||||
|
|
Loading…
Reference in New Issue