Commit 3889dadc authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

riched20: Handle range method failures in IsEqual (Coverity).

parent 5f933018
...@@ -2048,9 +2048,10 @@ static HRESULT textrange_isequal(LONG start, LONG end, ITextRange *range, LONG * ...@@ -2048,9 +2048,10 @@ static HRESULT textrange_isequal(LONG start, LONG end, ITextRange *range, LONG *
if (!ret) if (!ret)
ret = &v; ret = &v;
ITextRange_GetStart(range, &from); if (FAILED(ITextRange_GetStart(range, &from)) || FAILED(ITextRange_GetEnd(range, &to))) {
ITextRange_GetEnd(range, &to); *ret = tomFalse;
}
else
*ret = (start == from && end == to) ? tomTrue : tomFalse; *ret = (start == from && end == to) ? tomTrue : tomFalse;
return *ret == tomTrue ? S_OK : S_FALSE; return *ret == tomTrue ? S_OK : S_FALSE;
} }
......
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