[PATCH v3 5/7] mountmgr: Return STATUS_BUFFER_OVERFLOW if an insufficient buffer is passed to IOCTL_MOUNTMGR_ENUMERATE_CREDENTIALS.
Zebediah Figura
zfigura at codeweavers.com
Mon Aug 30 22:26:00 CDT 2021
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>
---
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
{
--
2.33.0
More information about the wine-devel
mailing list