Fix win7.patch empty line formatting
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
+++ b/crypto/rand/windows.cc
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
#include <windows.h>
|
||||
+#include <wincrypt.h>
|
||||
|
||||
|
||||
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && \
|
||||
!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||
@@ -57,16 +58,40 @@
|
||||
@@ -18,7 +18,7 @@
|
||||
+{
|
||||
+ return CryptGenRandom(g_hCryptProv, cbData, pbData);
|
||||
+}
|
||||
|
||||
|
||||
static void init_processprng(void) {
|
||||
HMODULE hmod = LoadLibraryW(L"bcryptprimitives");
|
||||
- if (hmod == nullptr) {
|
||||
@@ -53,5 +53,5 @@
|
||||
+
|
||||
+ abort();
|
||||
}
|
||||
|
||||
|
||||
void CRYPTO_init_sysrand(void) {
|
||||
|
||||
Reference in New Issue
Block a user