[PATCH v3 4/7] mountmgr: Return STATUS_BUFFER_OVERFLOW if an insufficient buffer is passed to IOCTL_MOUNTMGR_QUERY_DHCP_REQUEST_PARAMS.

Zebediah Figura zfigura at codeweavers.com
Mon Aug 30 22:25:59 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 d5cf1ae5c4b..757983c3f0b 100644
--- a/dlls/mountmgr.sys/mountmgr.c
+++ b/dlls/mountmgr.sys/mountmgr.c
@@ -319,7 +319,7 @@ static void WINAPI query_dhcp_request_params( TP_CALLBACK_INSTANCE *instance, vo
         {
             if (offset >= sizeof(query->size)) query->size = offset;
             offset = sizeof(query->size);
-            irp->IoStatus.u.Status = STATUS_MORE_ENTRIES;
+            irp->IoStatus.u.Status = STATUS_BUFFER_OVERFLOW;
             goto err;
         }
     }
-- 
2.33.0




More information about the wine-devel mailing list