[NTOSKRNL] In IoQueryFileDosDeviceName(), in case of an error, return appropriate...
[reactos.git] / ntoskrnl / io / iomgr / file.c
index df4e376..f8afc88 100644 (file)
@@ -3619,7 +3619,7 @@ IoQueryFileDosDeviceName(IN PFILE_OBJECT FileObject,
          */
         if (Status != STATUS_BUFFER_OVERFLOW)
         {
-            return STATUS_BUFFER_OVERFLOW;
+            return Status;
         }
     }