Zebediah Figura : mountmgr: Return STATUS_BUFFER_OVERFLOW if an insufficient buffer is passed to IOCTL_MOUNTMGR_ENUMERATE_CREDENTIALS.
Alexandre Julliard
julliard at winehq.org
Tue Aug 31 15:40:22 CDT 2021
Module: wine
Branch: master
Commit: 56104123d9721c4ab99425421275acaf70a3c41e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=56104123d9721c4ab99425421275acaf70a3c41e
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Mon Aug 30 22:26:00 2021 -0500
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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mountmgr.sys/mountmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mountmgr.sys/mountmgr.c b/dlls/mountmgr.sys/mountmgr.c
index 757983c3f0b..1e018a9fc0b 100644
--- a/dlls/mountmgr.sys/mountmgr.c
+++ b/dlls/mountmgr.sys/mountmgr.c
@@ -877,7 +877,7 @@ static NTSTATUS enumerate_credentials( void *buff, SIZE_T insize, SIZE_T outsize
{
if (size >= sizeof(list->size)) list->size = size;
iosb->Information = sizeof(list->size);
- status = STATUS_MORE_ENTRIES;
+ status = STATUS_BUFFER_OVERFLOW;
}
else
{
More information about the wine-cvs
mailing list