Commit 4200022d authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

oleaut32: Add explicit "!= S_OK" to expressions that use HRESULTs as booleans.

parent 7496db0f
......@@ -5500,7 +5500,7 @@ HRESULT WINAPI VarDecDiv(const DECIMAL* pDecLeft, const DECIMAL* pDecRight, DECI
VARIANT_DIFromDec(pDecLeft, &di_left);
VARIANT_DIFromDec(pDecRight, &di_right);
divresult = VARIANT_DI_div(&di_left, &di_right, &di_result);
if (divresult)
if (divresult != S_OK)
{
/* division actually overflowed */
hRet = divresult;
......
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