From a716883971eabb4309db90dbdebf31bbeeeb9e4c Mon Sep 17 00:00:00 2001 From: dongresource Date: Wed, 13 Sep 2023 21:57:19 +0200 Subject: [PATCH] Builds and runs mostly fine --- src/main.cpp | 2 +- vendor/bcrypt/bcrypt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 750d9f8..288e537 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -64,7 +64,7 @@ void terminate(int arg) { } #ifdef _WIN32 -static BOOL winTerminate(DWORD arg) { +static BOOL WINAPI winTerminate(DWORD arg) { terminate(0); return FALSE; } diff --git a/vendor/bcrypt/bcrypt.c b/vendor/bcrypt/bcrypt.c index 5f3af92..cb0632a 100644 --- a/vendor/bcrypt/bcrypt.c +++ b/vendor/bcrypt/bcrypt.c @@ -24,7 +24,7 @@ #ifdef _WIN32 || _WIN64 // On windows we need to generate random bytes differently. -typedef __int64 ssize_t; +//typedef __int64 ssize_t; #define BCRYPT_HASHSIZE 60 #include "bcrypt.h"