1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Favour constexpr function over macro on Crypt.CNG.cpp

This commit is contained in:
Tulio Leao
2020-07-14 13:12:27 -03:00
committed by Gymnasiast
parent 720c17eea6
commit 55f2eeb04d

View File

@@ -24,7 +24,7 @@
#include <windows.h>
#include <wincrypt.h>
#include <bcrypt.h>
#define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
constexpr bool NT_SUCCESS(NTSTATUS status) {return status >= 0;}
// clang-format on
using namespace Crypt;