[Common]: Fix warning C4706

Avoid assignments within conditional expressions.