projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
703d635
)
Fix IoGetDeviceProperty, which should never return STATUS_BUFFER_OVERFLOW, but STATUS...
author
Hervé Poussineau
<hpoussin@reactos.org>
Mon, 17 Oct 2005 08:41:00 +0000
(08:41 +0000)
committer
Hervé Poussineau
<hpoussin@reactos.org>
Mon, 17 Oct 2005 08:41:00 +0000
(08:41 +0000)
svn path=/trunk/; revision=18506
reactos/ntoskrnl/io/pnpmgr.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/io/pnpmgr.c
b/reactos/ntoskrnl/io/pnpmgr.c
index
2408d4b
..
c81aedf
100644
(file)
--- a/
reactos/ntoskrnl/io/pnpmgr.c
+++ b/
reactos/ntoskrnl/io/pnpmgr.c
@@
-325,13
+325,10
@@
IoGetDeviceProperty(
if (!NT_SUCCESS(Status))
{
ExFreePool(ValueInformation);
- return Status;
- }
-
- if (ValueInformation->DataLength > BufferLength)
- {
- ExFreePool(ValueInformation);
- return STATUS_BUFFER_TOO_SMALL;
+ if (Status == STATUS_BUFFER_OVERFLOW)
+ return STATUS_BUFFER_TOO_SMALL;
+ else
+ return Status;
}
/* FIXME: Verify the value (NULL-terminated, correct format). */