From 2cde60421177dc82f3efb1d9ac3bf251b6a54abe Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Tue, 24 Nov 2009 13:33:28 +0100 Subject: [PATCH] snmpapi/tests: Fix a crash on some 64bit systems. --- dlls/snmpapi/tests/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/snmpapi/tests/util.c b/dlls/snmpapi/tests/util.c index 64c75010445..908d5e29f73 100644 --- a/dlls/snmpapi/tests/util.c +++ b/dlls/snmpapi/tests/util.c @@ -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) -- 2.11.4.GIT