snmpapi: Implement SnmpUtilMem{Alloc,Free,ReAlloc}.
This commit is contained in:
parent
7d89e52ff0
commit
92cbda0a7d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue