File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -945,9 +945,10 @@ BOOL CreateProcessWithMitigationPolicy (
945945 STARTUPINFOEXW StartupInfoEx = { 0 };
946946 StartupInfoEx.StartupInfo .cb = sizeof ( StartupInfoEx.StartupInfo );
947947
948- if ( IsWindowsVistaOrGreater () )
948+ if ( IsWindows7OrGreater () )
949949 {
950950 // We can use extended startup info for Vista and up
951+ // however mitigation policies are not available until Windows 7
951952 StartupInfoEx.StartupInfo .cb = sizeof ( StartupInfoEx );
952953 dwCreationFlags |= EXTENDED_STARTUPINFO_PRESENT;
953954
@@ -1034,7 +1035,7 @@ BOOL CreateProcessWithMitigationPolicy (
10341035 strOutErrorContext = " CreateProcess" ;
10351036 }
10361037
1037- if ( IsWindowsVistaOrGreater () )
1038+ if ( IsWindows7OrGreater () )
10381039 {
10391040 // Clean up
10401041 _DeleteProcThreadAttributeList ( StartupInfoEx.lpAttributeList );
You can’t perform that action at this time.
0 commit comments