mirror of
https://github.com/reactos/wine.git
synced 2024-11-30 23:20:56 +00:00
oleaut32: Remove an always true if-subcondition (PVS-Studio).
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
662f62faa9
commit
45839dccee
@ -3606,7 +3606,7 @@ HRESULT WINAPI VarDiv(LPVARIANT left, LPVARIANT right, LPVARIANT result)
|
||||
}
|
||||
|
||||
/* Determine return type */
|
||||
if (!(rightvt == VT_EMPTY))
|
||||
if (rightvt != VT_EMPTY)
|
||||
{
|
||||
if (leftvt == VT_NULL || rightvt == VT_NULL)
|
||||
{
|
||||
@ -3639,7 +3639,7 @@ HRESULT WINAPI VarDiv(LPVARIANT left, LPVARIANT right, LPVARIANT result)
|
||||
else if (leftvt == VT_R4 || rightvt == VT_R4)
|
||||
resvt = VT_R4;
|
||||
}
|
||||
else if (leftvt == VT_NULL && rightvt == VT_EMPTY)
|
||||
else if (leftvt == VT_NULL)
|
||||
{
|
||||
V_VT(result) = VT_NULL;
|
||||
hres = S_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user