Fix Visual Studio related bugs

This commit is contained in:
Zhi Guan
2022-10-09 12:55:32 +08:00
parent dc58a88588
commit 6faeb627ed
16 changed files with 91 additions and 28 deletions

View File

@@ -11,6 +11,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <windows.h>
#include <wincrypt.h>
#include <gmssl/error.h>
@@ -37,7 +38,7 @@ int rand_bytes(uint8_t *buf, size_t len)
error_print();
goto end;
}
ret = 1
ret = 1;
end:
if (CryptReleaseContext(hCryptProv, 0) != TRUE) {
error_print();