[ros-diffs] [navaraf] 16981: Make w3seek happy.

navaraf at svn.reactos.com navaraf at svn.reactos.com
Tue Aug 2 23:22:45 CEST 2005


Make w3seek happy.
Modified: trunk/reactos/tools/pefixup.c
  _____  

Modified: trunk/reactos/tools/pefixup.c
--- trunk/reactos/tools/pefixup.c	2005-08-02 21:16:50 UTC (rev
16980)
+++ trunk/reactos/tools/pefixup.c	2005-08-02 21:22:40 UTC (rev
16981)
@@ -336,19 +336,19 @@

            i < nt_header->OptionalHeader.NumberOfRvaAndSizes;
            i++, section_header++)
       {
-         if (!strcmp(section_header->Name, ".text") ||
-             !strcmp(section_header->Name, ".data") ||
-             !strcmp(section_header->Name, ".idata") ||
-             !strcmp(section_header->Name, ".bss"))
+         if (!strcmp((char*)section_header->Name, ".text") ||
+             !strcmp((char*)section_header->Name, ".data") ||
+             !strcmp((char*)section_header->Name, ".idata") ||
+             !strcmp((char*)section_header->Name, ".bss"))
          {
             section_header->Characteristics |= IMAGE_SCN_MEM_NOT_PAGED;
             section_header->Characteristics &=
~IMAGE_SCN_MEM_DISCARDABLE;
          }
-         else if (!strcmp(section_header->Name, "INIT"))
+         else if (!strcmp((char*)section_header->Name, "INIT"))
          {
             section_header->Characteristics |=
IMAGE_SCN_MEM_DISCARDABLE;
          }
-         else if (!strcmp(section_header->Name, "PAGE"))
+         else if (!strcmp((char*)section_header->Name, "PAGE"))
          {
             section_header->Characteristics |= IMAGE_SCN_MEM_NOT_PAGED;
          }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050802/cc320e46/attachment.html


More information about the Ros-diffs mailing list