[NTOSKRNL] In IoQueryFileDosDeviceName(), in case of an error, return appropriate status

This commit is contained in:
Pierre Schweitzer 2018-10-03 17:08:42 +02:00
parent 8c6c5a92e8
commit 520f404e9c
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -3619,7 +3619,7 @@ IoQueryFileDosDeviceName(IN PFILE_OBJECT FileObject,
*/
if (Status != STATUS_BUFFER_OVERFLOW)
{
return STATUS_BUFFER_OVERFLOW;
return Status;
}
}