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 (
945
945
STARTUPINFOEXW StartupInfoEx = { 0 };
946
946
StartupInfoEx.StartupInfo .cb = sizeof ( StartupInfoEx.StartupInfo );
947
947
948
- if ( IsWindowsVistaOrGreater () )
948
+ if ( IsWindows7OrGreater () )
949
949
{
950
950
// We can use extended startup info for Vista and up
951
+ // however mitigation policies are not available until Windows 7
951
952
StartupInfoEx.StartupInfo .cb = sizeof ( StartupInfoEx );
952
953
dwCreationFlags |= EXTENDED_STARTUPINFO_PRESENT;
953
954
@@ -1034,7 +1035,7 @@ BOOL CreateProcessWithMitigationPolicy (
1034
1035
strOutErrorContext = " CreateProcess" ;
1035
1036
}
1036
1037
1037
- if ( IsWindowsVistaOrGreater () )
1038
+ if ( IsWindows7OrGreater () )
1038
1039
{
1039
1040
// Clean up
1040
1041
_DeleteProcThreadAttributeList ( StartupInfoEx.lpAttributeList );
You can’t perform that action at this time.
0 commit comments