File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -945,6 +945,7 @@ BOOL CreateProcessWithMitigationPolicy (
945
945
STARTUPINFOEXW StartupInfoEx = { 0 };
946
946
StartupInfoEx.StartupInfo .cb = sizeof ( StartupInfoEx.StartupInfo );
947
947
948
+ #ifdef PANIC_OVER
948
949
if ( IsWindows7OrGreater () )
949
950
{
950
951
// We can use extended startup info for Vista and up
@@ -1016,7 +1017,7 @@ BOOL CreateProcessWithMitigationPolicy (
1016
1017
return false ;
1017
1018
}
1018
1019
}
1019
-
1020
+ # endif
1020
1021
// Start GTA
1021
1022
BOOL bResult = _CreateProcessW ( lpApplicationName,
1022
1023
lpCommandLine,
@@ -1035,12 +1036,14 @@ BOOL CreateProcessWithMitigationPolicy (
1035
1036
strOutErrorContext = " CreateProcess" ;
1036
1037
}
1037
1038
1039
+ #ifdef PANIC_OVER
1038
1040
if ( IsWindows7OrGreater () )
1039
1041
{
1040
1042
// Clean up
1041
1043
_DeleteProcThreadAttributeList ( StartupInfoEx.lpAttributeList );
1042
1044
HeapFree ( GetProcessHeap (), 0 , (LPVOID)StartupInfoEx.lpAttributeList );
1043
1045
}
1046
+ #endif
1044
1047
return bResult;
1045
1048
}
1046
1049
You can’t perform that action at this time.
0 commit comments