is it ok to type cast byte buffer by (void*)?
this piece of my code was working fine till now - it is causing ACCESS VIOLATION and I can't figure out why.
edited:
nvm, it was all about memory protection.
please delete this thread.
Code:
DWORD dwAddress = 0x12345678;
BYTE bPatch[] = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 };
memcpy( (void*)dwAddress, (void*)bPatch, 7);
edited:
nvm, it was all about memory protection.
please delete this thread.