https://git.reactos.org/?p=reactos.git;a=commitdiff;h=520f404e9c9d31fa2a36c…
commit 520f404e9c9d31fa2a36c1d1e0cebfe9fe581ed7
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Wed Oct 3 17:08:42 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Wed Oct 3 17:08:42 2018 +0200
[NTOSKRNL] In IoQueryFileDosDeviceName(), in case of an error, return appropriate
status
---
ntoskrnl/io/iomgr/file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/io/iomgr/file.c b/ntoskrnl/io/iomgr/file.c
index df4e37638e..f8afc889fd 100644
--- a/ntoskrnl/io/iomgr/file.c
+++ b/ntoskrnl/io/iomgr/file.c
@@ -3619,7 +3619,7 @@ IoQueryFileDosDeviceName(IN PFILE_OBJECT FileObject,
*/
if (Status != STATUS_BUFFER_OVERFLOW)
{
- return STATUS_BUFFER_OVERFLOW;
+ return Status;
}
}