mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
jscript: Avoid FALSE:TRUE conditional expressions.
This commit is contained in:
parent
4d3a7aa268
commit
37a9183d68
@ -461,9 +461,9 @@ static HRESULT equal2_values(VARIANT *lval, VARIANT *rval, BOOL *ret)
|
||||
break;
|
||||
case VT_BSTR:
|
||||
if(!V_BSTR(lval))
|
||||
*ret = SysStringLen(V_BSTR(rval))?FALSE:TRUE;
|
||||
*ret = !SysStringLen(V_BSTR(rval));
|
||||
else if(!V_BSTR(rval))
|
||||
*ret = SysStringLen(V_BSTR(lval))?FALSE:TRUE;
|
||||
*ret = !SysStringLen(V_BSTR(lval));
|
||||
else
|
||||
*ret = !strcmpW(V_BSTR(lval), V_BSTR(rval));
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user