Be compatible with some of the crap apps out there Modified: trunk/reactos/ntoskrnl/mm/pe.c _____
Modified: trunk/reactos/ntoskrnl/mm/pe.c --- trunk/reactos/ntoskrnl/mm/pe.c 2005-02-11 19:13:01 UTC (rev 13496) +++ trunk/reactos/ntoskrnl/mm/pe.c 2005-02-11 21:02:35 UTC (rev 13497) @@ -649,8 +649,11 @@
if(pishSectionHeaders[i].SizeOfRawData != 0) { /* validate the alignment */ +#if 0 /* Yes, this should be a multiple of FileAlignment, but there's + stuff out there that isn't. We can cope with that */ if(!IsAligned(pishSectionHeaders[i].SizeOfRawData, nFileAlignment)) DIE(("SizeOfRawData[%u] is not aligned\n", i)); +#endif
if(!IsAligned(pishSectionHeaders[i].PointerToRawData, nFileAlignment)) DIE(("PointerToRawData[%u] is not aligned\n", i));