File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -681,14 +681,15 @@ namespace Security
681
681
return nullptr ;
682
682
}
683
683
684
+ #if !defined(MTA_DEBUG) && MTASA_VERSION_TYPE >= VERSION_TYPE_UNTESTED
684
685
if (!VerifyFileSignature (strDllPath))
685
686
{
686
687
SString strError = " SecureLoadLibrary: Invalid or missing digital signature" ;
687
688
AddReportLog (SecurityConstants::REPORT_CODE_INVALID_SIGNATURE, strError);
688
- # ifndef MTA_DEBUG
689
+
689
690
return nullptr ;
690
- #endif
691
691
}
692
+ #endif
692
693
693
694
HMODULE hModule = nullptr ;
694
695
bool bHasLock = false ;
@@ -826,8 +827,8 @@ int WINAPI WinMain(HINSTANCE hInstance, [[maybe_unused]] HINSTANCE hPrevInstance
826
827
return 1 ;
827
828
}
828
829
829
- // Anti-debugging check (only in release builds)
830
- # ifndef MTA_DEBUG
830
+ # if !defined(MTA_DEBUG) && MTASA_VERSION_TYPE >= VERSION_TYPE_UNTESTED
831
+ // Anti-debugging check (only in release builds)
831
832
if (Security::IsDebuggerPresent ())
832
833
{
833
834
Security::CleanupSecurity ();
You can’t perform that action at this time.
0 commit comments