Commit 45839dcc authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

oleaut32: Remove an always true if-subcondition (PVS-Studio).

parent 662f62fa
...@@ -3606,7 +3606,7 @@ HRESULT WINAPI VarDiv(LPVARIANT left, LPVARIANT right, LPVARIANT result) ...@@ -3606,7 +3606,7 @@ HRESULT WINAPI VarDiv(LPVARIANT left, LPVARIANT right, LPVARIANT result)
} }
/* Determine return type */ /* Determine return type */
if (!(rightvt == VT_EMPTY)) if (rightvt != VT_EMPTY)
{ {
if (leftvt == VT_NULL || rightvt == VT_NULL) if (leftvt == VT_NULL || rightvt == VT_NULL)
{ {
...@@ -3639,7 +3639,7 @@ HRESULT WINAPI VarDiv(LPVARIANT left, LPVARIANT right, LPVARIANT result) ...@@ -3639,7 +3639,7 @@ HRESULT WINAPI VarDiv(LPVARIANT left, LPVARIANT right, LPVARIANT result)
else if (leftvt == VT_R4 || rightvt == VT_R4) else if (leftvt == VT_R4 || rightvt == VT_R4)
resvt = VT_R4; resvt = VT_R4;
} }
else if (leftvt == VT_NULL && rightvt == VT_EMPTY) else if (leftvt == VT_NULL)
{ {
V_VT(result) = VT_NULL; V_VT(result) = VT_NULL;
hres = S_OK; hres = S_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment