Fixed `ZydisMemorySet` implementation

This commit is contained in:
Joel Höner 2017-11-24 20:32:52 +01:00
parent df949a5eb0
commit f1316c434e
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@
ZYDIS_INLINE void* ZydisMemorySet(void* ptr, int value, size_t num)
{
uint8_t c = value & 0xff;
for (uint8_t* p = (uint8_t*)ptr; *p; ++p) *p = c;
for (size_t i = 0; i < num; ++i) ((uint8_t*)ptr)[i] = c;
return ptr;
}