mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 14:51:00 +00:00
[NETAPI32]
NetpNtStatusToApiStatus: Map STATUS_INVALID_ACCOUNT_NAME to NERR_BadUsername. svn path=/trunk/; revision=59590
This commit is contained in:
parent
b466c46646
commit
ca79d2f1e9
1 changed files with 18 additions and 1 deletions
|
@ -218,7 +218,24 @@ NET_API_STATUS
|
|||
WINAPI
|
||||
NetpNtStatusToApiStatus(NTSTATUS Status)
|
||||
{
|
||||
return RtlNtStatusToDosError(Status);
|
||||
NET_API_STATUS ApiStatus;
|
||||
|
||||
switch (Status)
|
||||
{
|
||||
case STATUS_SUCCESS:
|
||||
ApiStatus = NERR_Success;
|
||||
break;
|
||||
|
||||
case STATUS_INVALID_ACCOUNT_NAME:
|
||||
ApiStatus = NERR_BadUsername;
|
||||
break;
|
||||
|
||||
default:
|
||||
ApiStatus = RtlNtStatusToDosError(Status);
|
||||
break;
|
||||
}
|
||||
|
||||
return ApiStatus;
|
||||
}
|
||||
|
||||
NET_API_STATUS WINAPI NetUseEnum(LMSTR server, DWORD level, LPBYTE* bufptr, DWORD prefmaxsize,
|
||||
|
|
Loading…
Reference in a new issue