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

This commit is contained in:
Rob Shearman 2008-09-12 13:01:55 +01:00 committed by Alexandre Julliard
parent 7496db0fa8
commit 4200022ddb

View File

@ -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;