mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
comctl32: Avoid hardcoding array lengths.
This commit is contained in:
parent
2e1c0d83c1
commit
954e6eba7e
2 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue