Author: gedmurphy
Date: Tue Mar 11 10:53:06 2014
New Revision: 62473
URL:
http://svn.reactos.org/svn/reactos?rev=62473&view=rev
Log:
[NTOSKRNL]
- Fix the buffer size check / set
Modified:
trunk/reactos/ntoskrnl/config/cmapi.c
Modified: trunk/reactos/ntoskrnl/config/cmapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmapi.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmapi.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/cmapi.c [iso-8859-1] Tue Mar 11 10:53:06 2014
@@ -1434,7 +1434,7 @@
}
/* Validate buffer length (we do not copy the name!) */
- *ResultLength = sizeof(KeyCachedInfo);
+ *ResultLength = sizeof(*KeyCachedInfo);
if (Length < *ResultLength)
{
return STATUS_BUFFER_TOO_SMALL;