From 4200022ddb5809c6747cd623e24c45ce67836e27 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 12 Sep 2008 13:01:55 +0100 Subject: [PATCH] oleaut32: Add explicit "!= S_OK" to expressions that use HRESULTs as booleans. --- dlls/oleaut32/vartype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c index 5f697c8963..52d939e511 100644 --- a/dlls/oleaut32/vartype.c +++ b/dlls/oleaut32/vartype.c @@ -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;