ssack
1
my code is
void GetDa(Pak* buf)
{
VMProtectBeginUltra(“VMP14”);
if (NULL == buf)
{
canlock = FALSE;
GetResText = 0;
FontTable = 0;
}
else
{
canlock = TRUE;
}
VMProtectEnd();
}
after compile. VMProtectEnd() become two call.
so protected note me UnpairedVMProtectEnd
ssack
2
void GetDa(Pak* buf)
{
VMProtectBeginUltra
if (NULL == buf)
{
canlock = FALSE;
GetResText = 0;
FontTable = 0;
}
else
{
canlock = TRUE;
}
VMProtectEnd
}
use MACRO marker no problem
Admin
3
The reason of this situation in optiomization:
VMProtectBeginUltra
…
VMProtectEnd
…
VMProtectEnd
Try to disable the optimization for this block of code.
ssack
4
i konw The reason is optiomization:
but use MACRO Marker is OK
so i hope continue use MACRO.
ssack
5
how to disable the optimization for one block?
gnjp
6
in MSVC++
#pragma optimize( “g”, off )
// code
#pragma optimize( “g”, on )