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 (
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
You can’t perform that action at this time.
0 commit comments