Fix buffer overrun

CID #716118

svn path=/trunk/; revision=62655
This commit is contained in:
Pierre Schweitzer 2014-04-06 13:42:27 +00:00
parent abab3274cd
commit 360df6d05d

View file

@ -221,7 +221,7 @@ LanguagesEnumProc(LPTSTR lpLanguage)
Lcid = _tcstoul(lpLanguage, NULL, 16);
GetLocaleInfo(Lcid, LOCALE_SLANGUAGE, Lang, sizeof(Lang));
GetLocaleInfo(Lcid, LOCALE_SLANGUAGE, Lang, sizeof(Lang) / sizeof(Lang[0]));
Index = (INT)SendMessage(hLangList, CB_ADDSTRING,
0, (LPARAM)Lang);