From: Brendan Hansen Date: Mon, 15 May 2023 15:49:33 +0000 (-0500) Subject: bugfix: windows build X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=410e4a8ac5feb752f7393c7731ee39f554e0a069;p=onyx.git bugfix: windows build --- diff --git a/shared/include/small_windows.h b/shared/include/small_windows.h index 93cc4bba..052e6b1b 100644 --- a/shared/include/small_windows.h +++ b/shared/include/small_windows.h @@ -445,21 +445,21 @@ GB_DLL_IMPORT short WINAPI ntohs(short netshort); GB_DLL_IMPORT int WINAPI ntohl(int netint); -GB_DLL_IMPORT NTSTATUS BCryptGenRandom( +GB_DLL_IMPORT int BCryptGenRandom( BCRYPT_ALG_HANDLE hAlgorithm, unsigned char * pbBuffer, unsigned long cbBuffer, unsigned long wFlags ); -GB_DLL_IMPORT NTSTATUS BCryptOpenAlgorithmProvider( +GB_DLL_IMPORT int BCryptOpenAlgorithmProvider( BCRYPT_ALG_HANDLE *phAlgorithm, const wchar_t * pszAlgId, const wchar_t * pszImplementation, unsigned long dwFlags ); -GB_DLL_IMPORT NTSTATUS BCryptCloseAlgorithmProvider( +GB_DLL_IMPORT int BCryptCloseAlgorithmProvider( BCRYPT_ALG_HANDLE hAlgorithm, unsigned long dwFlags );