comctl32: Avoid hardcoding array lengths.
This commit is contained in:
parent
2e1c0d83c1
commit
954e6eba7e
|
@ -339,7 +339,7 @@ static BOOL IPADDRESS_SetRange (IPADDRESS_INFO *infoPtr, int index, WORD range)
|
||||||
|
|
||||||
static void IPADDRESS_ClearAddress (const IPADDRESS_INFO *infoPtr)
|
static void IPADDRESS_ClearAddress (const IPADDRESS_INFO *infoPtr)
|
||||||
{
|
{
|
||||||
WCHAR nil[1] = { 0 };
|
static const WCHAR nil[] = { 0 };
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
|
|
|
@ -2433,7 +2433,7 @@ static WCHAR get_decimal_sep(void)
|
||||||
|
|
||||||
if(!sep)
|
if(!sep)
|
||||||
{
|
{
|
||||||
WCHAR buf[2] = {'.',0};
|
WCHAR buf[] = {'.', 0};
|
||||||
GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, buf, sizeof(buf) / sizeof(buf[0]));
|
GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, buf, sizeof(buf) / sizeof(buf[0]));
|
||||||
sep = buf[0];
|
sep = buf[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue