Author: tkreuzer
Date: Mon Apr 21 12:51:42 2014
New Revision: 62853
URL:
http://svn.reactos.org/svn/reactos?rev=62853&view=rev
Log:
[NTOSKRNL]
Don't expect a fully sized LOADER_PARAMETER_EXTENSION, since the win2003 loader
doesn't provide the full one.
Modified:
branches/kernel-fun/reactos/ntoskrnl/ex/init.c
Modified: branches/kernel-fun/reactos/ntoskrnl/ex/init.c
URL:
http://svn.reactos.org/svn/reactos/branches/kernel-fun/reactos/ntoskrnl/ex/…
==============================================================================
--- branches/kernel-fun/reactos/ntoskrnl/ex/init.c [iso-8859-1] (original)
+++ branches/kernel-fun/reactos/ntoskrnl/ex/init.c [iso-8859-1] Mon Apr 21 12:51:42 2014
@@ -13,6 +13,10 @@
#include <reactos/buildno.h>
#define NDEBUG
#include <debug.h>
+
+/* This is the size that we can expect from the win 2003 loader */
+#define LOADER_PARAMETER_EXTENSION_MIN_SIZE \
+ RTL_SIZEOF_THROUGH_FIELD(LOADER_PARAMETER_EXTENSION, AcpiTableSize)
/* Temporary hack */
BOOLEAN
@@ -764,8 +768,8 @@
/* Get the loader extension */
Extension = LoaderBlock->Extension;
- /* Validate the size (larger structures are OK, we'll just ignore them) */
- if (Extension->Size < sizeof(LOADER_PARAMETER_EXTENSION)) return FALSE;
+ /* Validate the size (Windows 2003 loader doesn't provide more) */
+ if (Extension->Size < LOADER_PARAMETER_EXTENSION_MIN_SIZE) return FALSE;
/* Don't validate upper versions */
if (Extension->MajorVersion > VER_PRODUCTMAJORVERSION) return TRUE;