Favour constexpr function over macro on Crypt.CNG.cpp

This commit is contained in:
Tulio Leao authored and Gymnasiast committed 2020-09-10 21:36:21 +02:00
1 parent 720c17eea6
commit 55f2eeb04d
1 file changed
+1 -1
+1 -1
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;