VMProtectIsDebuggerPresent on v3.8.8.2040

Issues related to VMProtect
Post Reply
Robustelli
Posts: 3
Joined: Wed Apr 10, 2024 7:11 am

VMProtectIsDebuggerPresent on v3.8.8.2040

Post by Robustelli »

Hello there,

I noticed a different behavior using the function VMProtectIsDebuggerPresent with the latest revision v3.8.8.2040.
The function returns 256 (decimal) even though no debugger is running
Same project compiled with v3.8.7.xxx works correctly.
Can someone confirm ?
Admin
Site Admin
Posts: 2687
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: VMProtectIsDebuggerPresent on v3.8.8.2040

Post by Admin »

Show me your VMProtectIsDebuggerPresent declaration.
Robustelli
Posts: 3
Joined: Wed Apr 10, 2024 7:11 am

Re: VMProtectIsDebuggerPresent on v3.8.8.2040

Post by Robustelli »

It's declared in WMProtectSDK.h

VMP_IMPORT bool VMP_API VMProtectIsDebuggerPresent(bool);
Admin
Site Admin
Posts: 2687
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: VMProtectIsDebuggerPresent on v3.8.8.2040

Post by Admin »

The size of "bool" is one byte, so 0x100 is equal "false"
Robustelli
Posts: 3
Joined: Wed Apr 10, 2024 7:11 am

Re: VMProtectIsDebuggerPresent on v3.8.8.2040

Post by Robustelli »

My bad... I wrongly defined bool as an int
Thanks for your quick support
Post Reply