mirror of
https://github.com/reactos/reactos.git
synced 2025-05-11 13:27:47 +00:00
[NTOSKRNL]
- Fix the buffer size check / set svn path=/trunk/; revision=62473
This commit is contained in:
parent
cb87e96df6
commit
3bce7d16d7
1 changed files with 1 additions and 1 deletions
|
@ -1434,7 +1434,7 @@ CmpQueryKeyDataFromCache(
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Validate buffer length (we do not copy the name!) */
|
/* Validate buffer length (we do not copy the name!) */
|
||||||
*ResultLength = sizeof(KeyCachedInfo);
|
*ResultLength = sizeof(*KeyCachedInfo);
|
||||||
if (Length < *ResultLength)
|
if (Length < *ResultLength)
|
||||||
{
|
{
|
||||||
return STATUS_BUFFER_TOO_SMALL;
|
return STATUS_BUFFER_TOO_SMALL;
|
||||||
|
|
Loading…
Reference in a new issue