Fix win7.patch empty line formatting

This commit is contained in:
Matt Hess
2026-01-13 01:47:02 +00:00
parent a967161de8
commit b20555e4ea

View File

@@ -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) {