Skip to content

Commit 72aeba8

Browse files
committed
Disabled some parts of (Added security features to the loader) due to #9318
1 parent db58279 commit 72aeba8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

MTA10/loader/MainFunctions.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,7 @@ BOOL CreateProcessWithMitigationPolicy (
945945
STARTUPINFOEXW StartupInfoEx = { 0 };
946946
StartupInfoEx.StartupInfo.cb = sizeof ( StartupInfoEx.StartupInfo );
947947

948+
#ifdef PANIC_OVER
948949
if ( IsWindows7OrGreater () )
949950
{
950951
// We can use extended startup info for Vista and up
@@ -1016,7 +1017,7 @@ BOOL CreateProcessWithMitigationPolicy (
10161017
return false;
10171018
}
10181019
}
1019-
1020+
#endif
10201021
// Start GTA
10211022
BOOL bResult = _CreateProcessW ( lpApplicationName,
10221023
lpCommandLine,
@@ -1035,12 +1036,14 @@ BOOL CreateProcessWithMitigationPolicy (
10351036
strOutErrorContext = "CreateProcess";
10361037
}
10371038

1039+
#ifdef PANIC_OVER
10381040
if ( IsWindows7OrGreater () )
10391041
{
10401042
// Clean up
10411043
_DeleteProcThreadAttributeList ( StartupInfoEx.lpAttributeList );
10421044
HeapFree ( GetProcessHeap (), 0, (LPVOID)StartupInfoEx.lpAttributeList );
10431045
}
1046+
#endif
10441047
return bResult;
10451048
}
10461049

0 commit comments

Comments
 (0)