use _tsizeof to get the buffer size

pull/1/head
Heiko Hund 2010-03-13 08:55:33 +01:00
parent 71a2b8fd23
commit f542c42738
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ __LoadLocalizedString(const UINT stringId, va_list args)
{
static TCHAR msg[512];
msg[0] = 0;
LoadStringLang(stringId, GetGUILanguage(), msg, sizeof(msg)/sizeof(*msg), args);
LoadStringLang(stringId, GetGUILanguage(), msg, _tsizeof(msg), args);
return msg;
}
@ -279,7 +279,7 @@ LangListEntry(const UINT stringId, const LANGID langId, ...)
va_list args;
va_start(args, langId);
LoadStringLang(stringId, langId, str, sizeof(str)/sizeof(*str), args);
LoadStringLang(stringId, langId, str, _tsizeof(str), args);
va_end(args);
return str;
}