[UMPNPMGR] Add missing status mappings to NtStatusToCrError.
authorEric Kohl <eric.kohl@reactos.org>
Sun, 12 Nov 2017 11:51:19 +0000 (12:51 +0100)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 12 Nov 2017 11:51:19 +0000 (12:51 +0100)
CORE-13944

base/services/umpnpmgr/umpnpmgr.c

index 9bc4e4b..e860477 100644 (file)
@@ -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;
     }
 }