2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 10:37:41 -04:00

Get rid of MEMDUP() macro.

This commit is contained in:
Darryl Pogue
2012-01-20 23:16:17 -08:00
committed by Adam Johnson
parent b3f75a5ae7
commit 4159663415
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,6 @@ inline void CDECL operator delete (void *, void *) {}
#define ALLOC(b) MemAlloc(b, 0, __FILE__, __LINE__)
#define ALLOCZERO(b) MemAlloc(b, kMemZero, __FILE__, __LINE__)
#define ALLOCFLAGS(b, f) MemAlloc(b, (f), __FILE__, __LINE__)
#define MEMDUP(s, b) MemDup(s, b, 0, __FILE__, __LINE__)
#define ZERO(s) MemSet(&s, 0, sizeof(s))
#define ZEROPTR(p) MemSet(p, 0, sizeof(*p))

View File

@ -384,7 +384,8 @@ inline void IVaultNodeSetBlob (
) {
free(*pdst);
if (src) {
*pdst = (uint8_t*)MEMDUP(src, srcLen);
*pdst = (uint8_t*)malloc(srcLen);
memcpy(*pdst, src, srcLen);
*pdstLen = srcLen;
}
else {