mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-22 05:09:13 +00:00
Replace MemZero with memset.
This commit is contained in:
@ -487,7 +487,7 @@ void * MemAlloc (unsigned bytes, unsigned flags, const char file[], int line) {
|
||||
// In debug mode ensure that memory is initialized to some freaky value
|
||||
#ifdef HS_DEBUGGING
|
||||
if (! (flags & kMemZero))
|
||||
MemSet(ptr, (uint8_t) ((uintptr_t)ptr >> 4), bytes);
|
||||
memset(ptr, (uint8_t) ((uintptr_t)ptr >> 4), bytes);
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
@ -620,16 +620,6 @@ void MemMove (void * dest, const void * source, unsigned bytes) {
|
||||
memmove(dest, source, bytes);
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
void MemSet (void * dest, unsigned value, unsigned bytes) {
|
||||
memset(dest, value, bytes);
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
void MemZero (void * dest, unsigned bytes) {
|
||||
memset(dest, 0, bytes);
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
void * MemDup (const void * ptr, unsigned bytes, unsigned flags, const char file[], int line) {
|
||||
void * dst = MemAlloc(bytes, flags, file, line);
|
||||
|
Reference in New Issue
Block a user