Author: jgardou
Date: Thu Jul 10 09:43:30 2014
New Revision: 63707
URL:
http://svn.reactos.org/svn/reactos?rev=63707&view=rev
Log:
[NTOS/CM]
- Fix overzealous check
Modified:
trunk/reactos/ntoskrnl/config/ntapi.c
Modified: trunk/reactos/ntoskrnl/config/ntapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/ntapi.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/config/ntapi.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/ntapi.c [iso-8859-1] Thu Jul 10 09:43:30 2014
@@ -625,8 +625,8 @@
PreviousMode = ExGetPreviousMode();
- if (Data && !DataSize)
- return STATUS_INVALID_PARAMETER;
+ if (!DataSize)
+ Data = NULL;
/* Probe and copy the data */
if ((PreviousMode != KernelMode) && Data)