Fix corrupt patch: add leading space to blank context lines in win7.patch
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user