[NTOSKRNL]

- Fix the buffer size check / set

svn path=/trunk/; revision=62473
This commit is contained in:
Ged Murphy 2014-03-11 10:53:06 +00:00
parent cb87e96df6
commit 3bce7d16d7

View file

@ -1434,7 +1434,7 @@ CmpQueryKeyDataFromCache(
}
/* Validate buffer length (we do not copy the name!) */
*ResultLength = sizeof(KeyCachedInfo);
*ResultLength = sizeof(*KeyCachedInfo);
if (Length < *ResultLength)
{
return STATUS_BUFFER_TOO_SMALL;