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
681681 return nullptr ;
682682 }
683683
684+ #if !defined(MTA_DEBUG) && MTASA_VERSION_TYPE >= VERSION_TYPE_UNTESTED
684685 if (!VerifyFileSignature (strDllPath))
685686 {
686687 SString strError = " SecureLoadLibrary: Invalid or missing digital signature" ;
687688 AddReportLog (SecurityConstants::REPORT_CODE_INVALID_SIGNATURE, strError);
688- # ifndef MTA_DEBUG
689+
689690 return nullptr ;
690- #endif
691691 }
692+ #endif
692693
693694 HMODULE hModule = nullptr ;
694695 bool bHasLock = false ;
@@ -826,8 +827,8 @@ int WINAPI WinMain(HINSTANCE hInstance, [[maybe_unused]] HINSTANCE hPrevInstance
826827 return 1 ;
827828 }
828829
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)
831832 if (Security::IsDebuggerPresent ())
832833 {
833834 Security::CleanupSecurity ();
You can’t perform that action at this time.
0 commit comments