[commit] r2396 - Merging support files from cogvm branch.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[commit] r2396 - Merging support files from cogvm branch.

commits-3
 
Author: andreas
Date: 2011-06-08 23:51:20 -0700 (Wed, 08 Jun 2011)
New Revision: 2396

Modified:
   trunk/platforms/win32/plugins/CroquetPlugin/sqWin32CroquetPlugin.c
Log:
Merging support files from cogvm branch.

Modified: trunk/platforms/win32/plugins/CroquetPlugin/sqWin32CroquetPlugin.c
===================================================================
--- trunk/platforms/win32/plugins/CroquetPlugin/sqWin32CroquetPlugin.c 2011-06-09 06:47:36 UTC (rev 2395)
+++ trunk/platforms/win32/plugins/CroquetPlugin/sqWin32CroquetPlugin.c 2011-06-09 06:51:20 UTC (rev 2396)
@@ -3,13 +3,13 @@
 
 static int loaded = 0;
 static HMODULE hAdvApi32 = NULL;
-static BOOLEAN __stdcall (*RtlGenRandom)(PVOID, ULONG) = NULL;
+static BOOLEAN (__stdcall *RtlGenRandom)(PVOID, ULONG) = NULL;
 
 int ioGatherEntropy(char *bufPtr, int bufSize) {
   if(!loaded) {
     loaded = 1;
     hAdvApi32 = LoadLibrary("advapi32.dll");
-    (void*)RtlGenRandom = GetProcAddress(hAdvApi32, "SystemFunction036");
+    RtlGenRandom = (void*)GetProcAddress(hAdvApi32, "SystemFunction036");
   }
   if(!RtlGenRandom) return 0;
   return RtlGenRandom(bufPtr, bufSize);