mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[SAMSRV]
- Fix incorrect heap buffer size, CID 716678. svn path=/trunk/; revision=60754
This commit is contained in:
parent
e8ee07de91
commit
077b7ac04d
|
@ -3586,7 +3586,7 @@ SamrLookupIdsInDomain(IN SAMPR_HANDLE DomainHandle,
|
|||
}
|
||||
|
||||
/* Allocate the names array */
|
||||
Names->Element = midl_user_allocate(Count * sizeof(ULONG));
|
||||
Names->Element = midl_user_allocate(Count * sizeof(*Names->Element));
|
||||
if (Names->Element == NULL)
|
||||
{
|
||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
@ -3594,7 +3594,7 @@ SamrLookupIdsInDomain(IN SAMPR_HANDLE DomainHandle,
|
|||
}
|
||||
|
||||
/* Allocate the use array */
|
||||
Use->Element = midl_user_allocate(Count * sizeof(ULONG));
|
||||
Use->Element = midl_user_allocate(Count * sizeof(*Use->Element));
|
||||
if (Use->Element == NULL)
|
||||
{
|
||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
|
Loading…
Reference in a new issue