cleolibrary / CLEO5

CLEO 5 for GTA San Andreas
https://cleo.li
MIT License
55 stars 6 forks source link

Update Mem.h #136

Open PrIzRaKDev opened 6 months ago

PrIzRaKDev commented 6 months ago

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.