snmpapi: Implement SnmpUtilMem{Alloc,Free,ReAlloc}.

This commit is contained in:
Hans Leidekker 2007-01-14 19:20:24 +01:00 committed by Alexandre Julliard
parent 7d89e52ff0
commit 92cbda0a7d
2 changed files with 21 additions and 3 deletions

View File

@ -53,6 +53,24 @@ BOOL WINAPI DllMain(
return TRUE;
}
LPVOID WINAPI SnmpUtilMemAlloc(UINT nbytes)
{
TRACE("(%d)\n", nbytes);
return HeapAlloc(GetProcessHeap(), 0, nbytes);
}
LPVOID WINAPI SnmpUtilMemReAlloc(LPVOID mem, UINT nbytes)
{
TRACE("(%p, %d)\n", mem, nbytes);
return HeapReAlloc(GetProcessHeap(), 0, mem, nbytes);
}
void WINAPI SnmpUtilMemFree(LPVOID mem)
{
TRACE("(%p)\n", mem);
HeapFree(GetProcessHeap(), 0, mem);
}
INT WINAPI SnmpUtilOidCpy(AsnObjectIdentifier *dst, AsnObjectIdentifier *src)
{
unsigned int i, size;

View File

@ -22,9 +22,9 @@
@ stub SnmpUtilAsnAnyFree
@ stub SnmpUtilDbgPrint
@ stub SnmpUtilIdsToA
@ stub SnmpUtilMemAlloc
@ stub SnmpUtilMemFree
@ stub SnmpUtilMemReAlloc
@ stdcall SnmpUtilMemAlloc(long)
@ stdcall SnmpUtilMemFree(ptr)
@ stdcall SnmpUtilMemReAlloc(ptr long)
@ stub SnmpUtilOctetsCmp
@ stub SnmpUtilOctetsCpy
@ stub SnmpUtilOctetsFree