EgtInterface :

- aggiunti controlli contro debug in versioni release
- modifiche configurazione per copia DLL debug.
This commit is contained in:
Dario Sassi
2014-09-10 13:11:36 +00:00
parent 5e1d91137d
commit 2fce436ae7
2 changed files with 12 additions and 4 deletions
+6
View File
@@ -43,6 +43,12 @@ DllMain( HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
{
if ( dwReason == DLL_PROCESS_ATTACH) {
#if defined( NDEBUG)
BOOL IsDbgPresent = FALSE ;
CheckRemoteDebuggerPresent( GetCurrentProcess(), &IsDbgPresent) ;
if ( IsDbgPresent)
return 0 ;
#endif
s_hModule = hModule ;
EGT_TRACE( "EgtInterface.dll Initializing!\n") ;
}