use _tsizeof to get the buffer size

pull/1/head
Heiko Hund 15 years ago
parent 71a2b8fd23
commit f542c42738

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

Loading…
Cancel
Save