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( ...@@ -53,6 +53,24 @@ BOOL WINAPI DllMain(
return TRUE; 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) INT WINAPI SnmpUtilOidCpy(AsnObjectIdentifier *dst, AsnObjectIdentifier *src)
{ {
unsigned int i, size; unsigned int i, size;
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
@ stub SnmpUtilAsnAnyFree @ stub SnmpUtilAsnAnyFree
@ stub SnmpUtilDbgPrint @ stub SnmpUtilDbgPrint
@ stub SnmpUtilIdsToA @ stub SnmpUtilIdsToA
@ stub SnmpUtilMemAlloc @ stdcall SnmpUtilMemAlloc(long)
@ stub SnmpUtilMemFree @ stdcall SnmpUtilMemFree(ptr)
@ stub SnmpUtilMemReAlloc @ stdcall SnmpUtilMemReAlloc(ptr long)
@ stub SnmpUtilOctetsCmp @ stub SnmpUtilOctetsCmp
@ stub SnmpUtilOctetsCpy @ stub SnmpUtilOctetsCpy
@ stub SnmpUtilOctetsFree @ 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