Zebediah Figura : mountmgr: Return STATUS_BUFFER_OVERFLOW from query_unix_drive() if the buffer is too small.
Alexandre Julliard
julliard at winehq.org
Thu Mar 26 16:27:23 CDT 2020
Module: wine
Branch: master
Commit: 2d0e113db15fc6109d0b44502cda40727ff04fa7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2d0e113db15fc6109d0b44502cda40727ff04fa7
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Wed Mar 25 18:17:03 2020 -0500
mountmgr: Return STATUS_BUFFER_OVERFLOW from query_unix_drive() if the buffer is too small.
STATUS_MORE_ENTRIES is meant for enumeration APIs like NtQueryDirectoryFile();
we are not enumerating anything here.
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 dd3a3932b4..222395fadf 100644
--- a/dlls/mountmgr.sys/mountmgr.c
+++ b/dlls/mountmgr.sys/mountmgr.c
@@ -330,7 +330,7 @@ static NTSTATUS query_unix_drive( void *buff, SIZE_T insize,
output->type = type;
iosb->Information = FIELD_OFFSET( struct mountmgr_unix_drive, type ) + sizeof(output->type);
}
- status = STATUS_MORE_ENTRIES;
+ status = STATUS_BUFFER_OVERFLOW;
goto done;
}
More information about the wine-cvs
mailing list