Commit 4f0cc308 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

win32: Rename a shadowing variable

parent 9521af0f
......@@ -419,7 +419,6 @@ enum_locale_proc (LPTSTR locale)
char language[100], country[100];
char locale[300];
if (script_to_check != NULL)
......@@ -467,11 +466,13 @@ enum_locale_proc (LPTSTR locale)
if (GetLocaleInfo (lcid, LOCALE_SENGLANGUAGE, language, sizeof (language)) &&
GetLocaleInfo (lcid, LOCALE_SENGCOUNTRY, country, sizeof (country)))
strcpy (locale, language);
strcat (locale, "_");
strcat (locale, country);
char str[300];
if (setlocale (LC_ALL, locale) != NULL)
strcpy (str, language);
strcat (str, "_");
strcat (str, country);
if (setlocale (LC_ALL, str) != NULL)
setlocale_called = TRUE;
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