EgtGraphics 1.5i2 :

- aggiunti controlli contro debug in versioni release
- modifiche configurazione per copia DLL debug.
This commit is contained in:
Dario Sassi
2014-09-10 13:12:14 +00:00
parent 851693478b
commit c6a97c8bfc
3 changed files with 10 additions and 4 deletions
+6
View File
@@ -44,6 +44,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( "EgtGraphics.dll Initializing!\n") ;
}