aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/server/servernethooks.cpp
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2023-06-29 04:11:30 +0100
committerGitHub <noreply@github.com>2023-06-28 23:11:30 -0400
commitde970c559c836075cca888e9ad953293833b406a (patch)
treef88bae195b236d1d3f9adf310e5a5fe577fea05b /NorthstarDLL/server/servernethooks.cpp
parent58a23248280a67ef91956d12cfd6021dda9fa1de (diff)
downloadNorthstarLauncher-de970c559c836075cca888e9ad953293833b406a.tar.gz
NorthstarLauncher-de970c559c836075cca888e9ad953293833b406a.zip
Use correctly typed values for variables (#486)
Diffstat (limited to 'NorthstarDLL/server/servernethooks.cpp')
-rw-r--r--NorthstarDLL/server/servernethooks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDLL/server/servernethooks.cpp b/NorthstarDLL/server/servernethooks.cpp
index 905d3251..f74f2d38 100644
--- a/NorthstarDLL/server/servernethooks.cpp
+++ b/NorthstarDLL/server/servernethooks.cpp
@@ -18,8 +18,8 @@ constexpr size_t HMACSHA256_LEN = 256 / 8;
static bool InitHMACSHA256()
{
NTSTATUS status;
- DWORD hashLength = NULL;
- ULONG hashLengthSz = NULL;
+ DWORD hashLength = 0;
+ ULONG hashLengthSz = 0;
if ((status = BCryptOpenAlgorithmProvider(&HMACSHA256, BCRYPT_SHA256_ALGORITHM, NULL, BCRYPT_ALG_HANDLE_HMAC_FLAG)))
{