strcpynAtoW takes number of characters, not bytes.

This commit is contained in:
Dmitry Timoshkov 2005-09-12 15:33:50 +00:00 committed by Alexandre Julliard
parent cbca5f2297
commit 2372e9c952
1 changed files with 2 additions and 2 deletions

View File

@ -425,9 +425,9 @@ static LANGID get_language_id(LPCSTR Lang, LPCSTR Country, LPCSTR Charset, LPCST
}
l_data.n_found = 0;
strcpynAtoW(l_data.lang, Lang, sizeof(l_data.lang));
strcpynAtoW(l_data.lang, Lang, sizeof(l_data.lang)/sizeof(WCHAR));
if (Country) strcpynAtoW(l_data.country, Country, sizeof(l_data.country));
if (Country) strcpynAtoW(l_data.country, Country, sizeof(l_data.country)/sizeof(WCHAR));
else l_data.country[0] = 0;
EnumResourceLanguagesW(kernel32_handle, (LPCWSTR)RT_STRING, (LPCWSTR)LOCALE_ILANGUAGE,