mountmgr: Return STATUS_BUFFER_OVERFLOW if an insufficient buffer is passed to IOCTL_MOUNTMGR_ENUMERATE_CREDENTIALS.
STATUS_MORE_ENTRIES is used for directory enumeration APIs, and signals that a continuation will be returned on the next call. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
33ed41950d
commit
56104123d9
|
@ -877,7 +877,7 @@ static NTSTATUS enumerate_credentials( void *buff, SIZE_T insize, SIZE_T outsize
|
||||||
{
|
{
|
||||||
if (size >= sizeof(list->size)) list->size = size;
|
if (size >= sizeof(list->size)) list->size = size;
|
||||||
iosb->Information = sizeof(list->size);
|
iosb->Information = sizeof(list->size);
|
||||||
status = STATUS_MORE_ENTRIES;
|
status = STATUS_BUFFER_OVERFLOW;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue