[MOUNTMGR] Don't overrun output buffer in QueryPointsFromMemory
[reactos.git] / drivers / filters / mountmgr / point.c
index 77fc6fb..4c1d843 100644 (file)
@@ -342,6 +342,8 @@ QueryPointsFromMemory(IN PDEVICE_EXTENSION DeviceExtension,
 
     if (MountPoints->Size > Stack->Parameters.DeviceIoControl.OutputBufferLength)
     {
+        Irp->IoStatus.Information = sizeof(MOUNTMGR_MOUNT_POINTS);
+
         return STATUS_BUFFER_OVERFLOW;
     }