https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2b5c4bd2c755bacd7a158…
commit 2b5c4bd2c755bacd7a158b529feb4d69022f65ae
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun Nov 12 12:51:19 2017 +0100
[UMPNPMGR] Add missing status mappings to NtStatusToCrError.
CORE-13944
---
base/services/umpnpmgr/umpnpmgr.c | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/base/services/umpnpmgr/umpnpmgr.c b/base/services/umpnpmgr/umpnpmgr.c
index 9bc4e4b3f1..e86047785a 100644
--- a/base/services/umpnpmgr/umpnpmgr.c
+++ b/base/services/umpnpmgr/umpnpmgr.c
@@ -169,14 +169,25 @@ NtStatusToCrError(NTSTATUS Status)
{
switch (Status)
{
- case STATUS_NO_SUCH_DEVICE:
- return CR_NO_SUCH_DEVINST;
case STATUS_NOT_IMPLEMENTED:
return CR_CALL_NOT_IMPLEMENTED;
+ case STATUS_INVALID_PARAMETER:
+ return CR_INVALID_DATA;
+
+ case STATUS_NO_SUCH_DEVICE:
+ return CR_NO_SUCH_DEVINST;
+
+ case STATUS_ACCESS_DENIED:
+ return CR_ACCESS_DENIED;
+
+ case STATUS_BUFFER_TOO_SMALL:
+ return CR_BUFFER_SMALL;
+
+ case STATUS_OBJECT_NAME_NOT_FOUND:
+ return CR_NO_SUCH_VALUE;
+
default:
- /* FIXME: add more mappings */
- DPRINT1("Unable to map status 0x%08lx\n", Status);
return CR_FAILURE;
}
}