Hello! This is my fix to an error in pefixup tool. The section count was taken from a wrong struct member and the tool only worked (when worked) by chance.
Index: tools/pefixup.c =================================================================== --- tools/pefixup.c (revision 61786) +++ tools/pefixup.c (working copy) @@ -378,7 +378,7 @@ { /* Update section flags */ for (i = 0, section_header = IMAGE_FIRST_SECTION(nt_header); - i < dtohl(nt_header->OptionalHeader.NumberOfRvaAndSizes); + i < dtohl(nt_header->FileHeader.NumberOfSections); i++, section_header++) { if (!strcmp((char*)section_header->Name, ".text") ||
_______________________________________________ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev