[ntdll]
authorChristoph von Wittich <christoph_vw@reactos.org>
Fri, 9 May 2014 05:07:51 +0000 (05:07 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Fri, 9 May 2014 05:07:51 +0000 (05:07 +0000)
fix parameter check in RtlFindActivationContextSectionString

svn path=/trunk/; revision=63204

reactos/lib/rtl/actctx.c

index bf425a9..784e446 100644 (file)
@@ -5130,7 +5130,7 @@ RtlpFindActivationContextSection_CheckParameters( ULONG flags, const GUID *guid,
                                                   const UNICODE_STRING *section_name, PACTCTX_SECTION_KEYED_DATA data )
 {
     /* Check general parameter combinations */
-    if (!section_name ||
+    if (!section_name ||  !section_name->Buffer || 
         (flags & ~FIND_ACTCTX_VALID_MASK) ||
         ((flags & FIND_ACTCTX_VALID_MASK) && !data) ||
         (data && data->cbSize < offsetof(ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex)))