
That is still crash too...
You use Assemlby Adress for it.
x90x90
Not Hex = Fail
Better to use const BYTE CQCon [2] = {0x90,0x90};
That code you wrote, is 1. not work,2. still crash
soo:
const BYTE CQCon [2] = {0x90,0x90};
unsigned long Protection;//or Dword xD
VirtualProtection((void*)ASM_CQCPRONE,2,PAGE_READW RITE,&Protection);
memcpy((void*)ASM_CQCPRONE,&CQCon,2);
VirtualProtection((void*)ASM_CQCPRONE,2,Protection ,0);
if(cqcprone==0)
{
const BYTE CQCoff [2] = {};//search off-bytes and use hex xDDD
unsigned long Protection;//or Dword xD
VirtualProtection((void*)ASM_CQCPRONE,2,PAGE_READW RITE,&Protection);
memcpy((void*)ASM_CQCPRONE,&CQCoff,2);
VirtualProtection((void*)ASM_CQCPRONE,2,Protection ,0);
I think it's better then yours xD