Commit 2cde6042 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

snmpapi/tests: Fix a crash on some 64bit systems.

parent 01b972d6
......@@ -424,7 +424,7 @@ static void test_SnmpUtilOidAppend(void)
static AsnObjectIdentifier oid1;
static AsnObjectIdentifier oid2 = { 3, ids2 };
ids1 = HeapAlloc(GetProcessHeap(), 0, 3 * sizeof(UINT));
ids1 = SnmpUtilMemAlloc(3 * sizeof(UINT));
ids1[0] = 1;
ids1[1] = 2;
ids1[2] = 3;
......@@ -451,7 +451,7 @@ static void test_SnmpUtilOidAppend(void)
ok(!memcmp(&oid1.ids[3], ids2, 3 * sizeof(UINT)),
"SnmpUtilOidAppend failed\n");
HeapFree(GetProcessHeap(), 0, ids1);
SnmpUtilOidFree(&oid1);
}
static void test_SnmpUtilVarBindCpyFree(void)
......
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