Alex Henrie : oleaut32: Make constant 'szAccept' static.

Alexandre Julliard julliard at winehq.org
Fri Nov 30 14:34:41 CST 2018


Module: wine
Branch: master
Commit: 77a8872fc9e2e44ec3b502cadcb883577a0b70f7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=77a8872fc9e2e44ec3b502cadcb883577a0b70f7

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Fri Nov 30 00:14:15 2018 -0700

oleaut32: Make constant 'szAccept' static.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/oleaut32/vartype.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c
index e2df873..067d515 100644
--- a/dlls/oleaut32/vartype.c
+++ b/dlls/oleaut32/vartype.c
@@ -6522,7 +6522,7 @@ static HRESULT VARIANT_BstrFromReal(DOUBLE dblIn, LCID lcid, ULONG dwFlags,
    */
   if (buff[0] == '-')
   {
-    const WCHAR szAccept[] = {'0', '.', '\0'};
+    static const WCHAR szAccept[] = {'0', '.', '\0'};
     if (strlenW(buff + 1) == strspnW(buff + 1, szAccept))
     { buff[0] = '0'; buff[1] = '\0'; }
   }




More information about the wine-cvs mailing list