[vlc-commits] Contribs: Don't let gcrypt use registry to get entropy on WinRT

Jean-Baptiste Kempf git at videolan.org
Wed May 11 19:55:28 CEST 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed May 11 19:55:09 2016 +0200| [68438d48bb1b490d6a64496362baa7e5fca78978] | committer: Jean-Baptiste Kempf

Contribs: Don't let gcrypt use registry to get entropy on WinRT

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=68438d48bb1b490d6a64496362baa7e5fca78978
---

 contrib/src/gcrypt/winrt.patch |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/contrib/src/gcrypt/winrt.patch b/contrib/src/gcrypt/winrt.patch
index ed29bcc..0bf4141 100644
--- a/contrib/src/gcrypt/winrt.patch
+++ b/contrib/src/gcrypt/winrt.patch
@@ -106,3 +106,21 @@
  
    /* The performance of QPC varies depending on the architecture it's
       running on and on the OS, the MS documentation is vague about the
+--- libgcrypt.old/random/rndw32.c	2016-05-11 19:53:20.614939666 +0200
++++ libgcrypt/random/rndw32.c	2016-05-11 19:54:37.410941944 +0200
+@@ -361,6 +361,7 @@
+ registry_poll (void (*add)(const void*, size_t, enum random_origins),
+                enum random_origins requester)
+ {
++#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
+   static int cbPerfData = PERFORMANCE_BUFFER_SIZE;
+   int iterations;
+   DWORD dwSize, status;
+@@ -480,6 +481,7 @@
+      isn't done then any system components which provide performance data
+      can't be removed or changed while the handle remains active.  */
+   RegCloseKey (HKEY_PERFORMANCE_DATA);
++#endif
+ }
+ 
+ 



More information about the vlc-commits mailing list