comctl32: Avoid hardcoding array lengths.

This commit is contained in:
Frédéric Delanoy 2011-11-21 19:19:46 +01:00 committed by Alexandre Julliard
parent 2e1c0d83c1
commit 954e6eba7e
2 changed files with 2 additions and 2 deletions

View file

@ -339,7 +339,7 @@ static BOOL IPADDRESS_SetRange (IPADDRESS_INFO *infoPtr, int index, WORD range)
static void IPADDRESS_ClearAddress (const IPADDRESS_INFO *infoPtr)
{
WCHAR nil[1] = { 0 };
static const WCHAR nil[] = { 0 };
int i;
TRACE("\n");

View file

@ -2433,7 +2433,7 @@ static WCHAR get_decimal_sep(void)
if(!sep)
{
WCHAR buf[2] = {'.',0};
WCHAR buf[] = {'.', 0};
GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, buf, sizeof(buf) / sizeof(buf[0]));
sep = buf[0];
}