bugfix: windows build
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 15 May 2023 15:49:33 +0000 (10:49 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 15 May 2023 15:49:33 +0000 (10:49 -0500)
shared/include/small_windows.h

index 93cc4bba74decd5ed22192c25081a062665292b9..052e6b1b91c308b66d5ab25dd9c6def13899ce78 100644 (file)
@@ -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
 );