mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 07:56:59 +00:00
[UMPNPMGR] Add missing status mappings to NtStatusToCrError.
CORE-13944
This commit is contained in:
parent
a1d7e9936d
commit
2b5c4bd2c7
1 changed files with 15 additions and 4 deletions
|
@ -169,14 +169,25 @@ NtStatusToCrError(NTSTATUS Status)
|
||||||
{
|
{
|
||||||
switch (Status)
|
switch (Status)
|
||||||
{
|
{
|
||||||
case STATUS_NO_SUCH_DEVICE:
|
|
||||||
return CR_NO_SUCH_DEVINST;
|
|
||||||
case STATUS_NOT_IMPLEMENTED:
|
case STATUS_NOT_IMPLEMENTED:
|
||||||
return CR_CALL_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:
|
default:
|
||||||
/* FIXME: add more mappings */
|
|
||||||
DPRINT1("Unable to map status 0x%08lx\n", Status);
|
|
||||||
return CR_FAILURE;
|
return CR_FAILURE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue