oleaut32: Added a preliminary test, for scale overflow, in VarDecCmp. (resend)

Dmitry Timoshkov dmitry at baikal.ru
Mon Oct 21 21:16:38 CDT 2013


Christopher Cope <ccope3 at utk.edu> wrote:

> --- a/dlls/oleaut32/vartype.c
> +++ b/dlls/oleaut32/vartype.c
> @@ -5836,7 +5836,9 @@ HRESULT WINAPI VarDecRound(const DECIMAL* pDecIn, int cDecimals, DECIMAL* pDecOu
>  HRESULT WINAPI VarDecCmp(const DECIMAL* pDecLeft, const DECIMAL* pDecRight)
>  {
>    HRESULT hRet;
> -  DECIMAL result;
> +  static DECIMAL scaleFactor;

Is there a reason to make this variable static?

-- 
Dmitry.



More information about the wine-devel mailing list