Fix corrupt patch: add leading space to blank context lines in win7.patch

This commit is contained in:
Matt Hess
2026-02-20 02:48:52 +00:00
parent 76d1efcf57
commit 8fe46a5cf8
+6 -4
View File
@@ -2,12 +2,12 @@
+++ b/crypto/rand/windows.cc
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <windows.h>
+#include <wincrypt.h>
using namespace bssl;
@@ -59,14 +59,38 @@
// See: https://learn.microsoft.com/en-us/windows/win32/seccng/processprng
typedef BOOL(WINAPI *ProcessPrngFunction)(PBYTE pbData, SIZE_T cbData);
@@ -18,7 +18,7 @@
+{
+ return CryptGenRandom(g_hCryptProv, cbData, pbData);
+}
static void init_processprng() {
HMODULE hmod = LoadLibraryW(L"bcryptprimitives");
- if (hmod == nullptr) {
@@ -53,3 +53,5 @@
+
+ abort();
}