Commit 92cbda0a authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent 7d89e52f
......@@ -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;
......
......@@ -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
......
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