Rob Shearman : oleaut32: Add explicit "!= S_OK" to expressions that use HRESULTs as booleans.
Alexandre Julliard
julliard at winehq.org
Mon Sep 15 06:54:03 CDT 2008
Module: wine
Branch: master
Commit: 4200022ddb5809c6747cd623e24c45ce67836e27
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4200022ddb5809c6747cd623e24c45ce67836e27
Author: Rob Shearman <robertshearman at gmail.com>
Date: Fri Sep 12 13:01:55 2008 +0100
oleaut32: Add explicit "!= S_OK" to expressions that use HRESULTs as booleans.
---
dlls/oleaut32/vartype.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c
index 5f697c8..52d939e 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;
More information about the wine-cvs
mailing list