snmpapi/tests: Use the available ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-05-30 21:15:43 +02:00 committed by Alexandre Julliard
parent 1e9de768c9
commit a49b28cc77

View file

@ -211,7 +211,7 @@ static void test_SnmpUtilOidCpyFree(void)
{
INT ret;
static UINT ids[] = { 1, 3, 6, 1, 4, 1, 311 };
static AsnObjectIdentifier dst, src = { sizeof(ids) / sizeof(ids[0]), ids };
static AsnObjectIdentifier dst, src = { ARRAY_SIZE(ids), ids };
/* These crashes under win98 */
if(0)