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

David Kahurani k.kahurani at gmail.com
Mon Feb 21 00:54:19 CST 2022


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