CLEO5
CLEO5 copied to clipboard
Update Mem.h
There are a few things in your C++ code that can cause errors or be potentially dangerous. --------------------------------------------------------------------------- Here are the corrections I've made:
Added #include <cstring> for memcpy and memset functions. Use size_t instead of int for dimensions to conform to C++ standard definitions. Fixed MemCopy functions to avoid overloading with identical parameters. Added type conversions to work correctly with pointers. Fixed pointer incrementing operations after writing operations. Added BYTE and DWORD type declarations and constants for OP_JMP and OP_CALL opcodes.