Austin English : oleaut32: Avoid shadowing a parameter.

Alexandre Julliard julliard at winehq.org
Wed Mar 9 11:12:51 CST 2011


Module: wine
Branch: master
Commit: 651adc7fc8c7ec55c1be0b540e8775d75e5cb666
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=651adc7fc8c7ec55c1be0b540e8775d75e5cb666

Author: Austin English <austinenglish at gmail.com>
Date:   Wed Mar  9 01:08:09 2011 -0800

oleaut32: Avoid shadowing a parameter.

---

 dlls/oleaut32/varformat.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/oleaut32/varformat.c b/dlls/oleaut32/varformat.c
index e21ce96..351529c 100644
--- a/dlls/oleaut32/varformat.c
+++ b/dlls/oleaut32/varformat.c
@@ -2490,11 +2490,11 @@ HRESULT WINAPI VarFormatCurrency(LPVARIANT pVarIn, INT nDigits, INT nLeading,
 
     if (nGrouping == -2)
     {
-      WCHAR nGrouping[16];
-      nGrouping[2] = '\0';
-      GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, nGrouping,
-                     sizeof(nGrouping)/sizeof(WCHAR));
-      numfmt.Grouping = nGrouping[2] == '2' ? 32 : nGrouping[0] - '0';
+      WCHAR grouping[16];
+      grouping[2] = '\0';
+      GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, grouping,
+                     sizeof(grouping)/sizeof(WCHAR));
+      numfmt.Grouping = grouping[2] == '2' ? 32 : grouping[0] - '0';
     }
     else if (nGrouping == -1)
       numfmt.Grouping = 3; /* 3 = "n,nnn.nn" */




More information about the wine-cvs mailing list