[PATCH] dlls/oleaut32: Do not skip the first character

Robert Wilhelm robert.wilhelm at gmx.net
Mon Feb 21 03:07:49 CST 2022


Hi David,
Thanks for the patch.
I think it would be nice to add a test for this bug.

Thanks,
Robert 

> Am 21.02.2022 um 07:54 schrieb David Kahurani <k.kahurani at gmail.com>:
> 
> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52476
> Signed-off-by: David Kahurani <k.kahurani at gmail.com>
> ---
> dlls/oleaut32/variant.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c
> index bf8f041..66bd905 100644
> --- a/dlls/oleaut32/variant.c
> +++ b/dlls/oleaut32/variant.c
> @@ -1633,7 +1633,7 @@ HRESULT WINAPI VarParseNumFromStr(const OLECHAR *lpszStr, LCID lcid, ULONG dwFla
>       /* If we have no digits so far, skip leading zeros */
>       if (!pNumprs->cDig)
>       {
> -        while (lpszStr[1] == '0')
> +        while (lpszStr[0] == '0')
>         {
>           dwState |= B_LEADING_ZERO;
>           cchUsed++;
> -- 
> 2.25.1
> 
> 




More information about the wine-devel mailing list