mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Add casts for NTSTATUS in NtStatusToErrorCode
This commit is contained in:
parent
df86e69902
commit
805a1c4fcf
@ -100,9 +100,9 @@ OS_RNG_Err::OS_RNG_Err(const std::string &operation)
|
|||||||
#if defined(USE_MS_CNGAPI)
|
#if defined(USE_MS_CNGAPI)
|
||||||
inline DWORD NtStatusToErrorCode(NTSTATUS status)
|
inline DWORD NtStatusToErrorCode(NTSTATUS status)
|
||||||
{
|
{
|
||||||
if (status == STATUS_INVALID_PARAMETER)
|
if (status == (NTSTATUS)STATUS_INVALID_PARAMETER)
|
||||||
return ERROR_INVALID_PARAMETER;
|
return ERROR_INVALID_PARAMETER;
|
||||||
else if (status == STATUS_INVALID_HANDLE)
|
else if (status == (NTSTATUS)STATUS_INVALID_HANDLE)
|
||||||
return ERROR_INVALID_HANDLE;
|
return ERROR_INVALID_HANDLE;
|
||||||
else
|
else
|
||||||
return (DWORD)status;
|
return (DWORD)status;
|
||||||
|
Loading…
Reference in New Issue
Block a user