mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
oleaut32: Add explicit "!= S_OK" to expressions that use HRESULTs as booleans.
This commit is contained in:
parent
7496db0fa8
commit
4200022ddb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user