Commit 651adc7f authored by Austin English's avatar Austin English Committed by Alexandre Julliard

oleaut32: Avoid shadowing a parameter.

parent 4ace7b21
...@@ -2490,11 +2490,11 @@ HRESULT WINAPI VarFormatCurrency(LPVARIANT pVarIn, INT nDigits, INT nLeading, ...@@ -2490,11 +2490,11 @@ HRESULT WINAPI VarFormatCurrency(LPVARIANT pVarIn, INT nDigits, INT nLeading,
if (nGrouping == -2) if (nGrouping == -2)
{ {
WCHAR nGrouping[16]; WCHAR grouping[16];
nGrouping[2] = '\0'; grouping[2] = '\0';
GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, nGrouping, GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, grouping,
sizeof(nGrouping)/sizeof(WCHAR)); sizeof(grouping)/sizeof(WCHAR));
numfmt.Grouping = nGrouping[2] == '2' ? 32 : nGrouping[0] - '0'; numfmt.Grouping = grouping[2] == '2' ? 32 : grouping[0] - '0';
} }
else if (nGrouping == -1) else if (nGrouping == -1)
numfmt.Grouping = 3; /* 3 = "n,nnn.nn" */ numfmt.Grouping = 3; /* 3 = "n,nnn.nn" */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment