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:
@ -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))
|
||||
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user