From 6d7d3aaff69c4126f2c9fb95be8219ca1bf875a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Fri, 11 Feb 2005 21:02:35 +0000 Subject: [PATCH] Be compatible with some of the crap apps out there svn path=/trunk/; revision=13497 --- reactos/ntoskrnl/mm/pe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/ntoskrnl/mm/pe.c b/reactos/ntoskrnl/mm/pe.c index f68fac9f381..fc8e2b97ffd 100644 --- a/reactos/ntoskrnl/mm/pe.c +++ b/reactos/ntoskrnl/mm/pe.c @@ -649,8 +649,11 @@ l_ReadHeaderFromFile: 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));