From f542c42738227f81246feb6e02ba4e2f1354f0e6 Mon Sep 17 00:00:00 2001 From: Heiko Hund Date: Sat, 13 Mar 2010 08:55:33 +0100 Subject: [PATCH] use _tsizeof to get the buffer size --- localization.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/localization.c b/localization.c index b3513d2..aff8abd 100644 --- a/localization.c +++ b/localization.c @@ -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; }