Skip to content

Commit db58279

Browse files
authored
Addendum #4 to 027f7ed (Added security features to the loader)
Fixed Windows Vista startup issue
1 parent d0e3c65 commit db58279

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

MTA10/loader/MainFunctions.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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 );

0 commit comments

Comments
 (0)