Skip to content

Commit a070ccc

Browse files
Update Win32 deployment for the VS2010 executable section ordering
1 parent fe7ea53 commit a070ccc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

engine/src/deploy_windows.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,11 +1645,11 @@ Exec_stat MCDeployToWindows(const MCDeployParameters& p_params)
16451645
{
16461646
t_section_count = t_nt_header . FileHeader . NumberOfSections;
16471647
if (p_params . payload != nil)
1648-
t_payload_section = &t_section_headers[t_section_count - 3];
1648+
t_payload_section = &t_section_headers[t_section_count - 4];
16491649
else
16501650
t_payload_section = nil;
1651-
t_project_section = &t_section_headers[t_section_count - 2];
1652-
t_resource_section = &t_section_headers[t_section_count - 1];
1651+
t_project_section = &t_section_headers[t_section_count - 3];
1652+
t_resource_section = &t_section_headers[t_section_count - 2];
16531653
}
16541654

16551655
// Next we check that there are at least two sections, and they are the

0 commit comments

Comments
 (0)