Commit 954e6eba authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

comctl32: Avoid hardcoding array lengths.

parent 2e1c0d83
......@@ -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");
......
......@@ -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];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment