Author: tkreuzer
Date: Sat May 10 09:16:50 2014
New Revision: 63212
URL:
http://svn.reactos.org/svn/reactos?rev=63212&view=rev
Log:
[KSECDD]
Fix 64 bit compilation
Modified:
trunk/reactos/drivers/crypto/ksecdd/random.c
Modified: trunk/reactos/drivers/crypto/ksecdd/random.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/crypto/ksecdd/rand…
==============================================================================
--- trunk/reactos/drivers/crypto/ksecdd/random.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/crypto/ksecdd/random.c [iso-8859-1] Sat May 10 09:16:50 2014
@@ -31,11 +31,13 @@
PVOID Buffer,
SIZE_T Length)
{
+ LARGE_INTEGER TickCount;
ULONG i, RandomValue;
PULONG P;
/* Try to generate a more random seed */
- KsecRandomSeed ^= _rotl(KeTickCount.LowPart, (KsecRandomSeed % 23));
+ KeQueryTickCount(&TickCount);
+ KsecRandomSeed ^= _rotl(TickCount.LowPart, (KsecRandomSeed % 23));
P = Buffer;
for (i = 0; i < Length / sizeof(ULONG); i++)
@@ -94,7 +96,7 @@
PTEB Teb;
PPEB Peb;
PWSTR String;
- ULONG ReturnLength;
+ SIZE_T ReturnLength;
NTSTATUS Status;
/* Query some generic values */
@@ -125,7 +127,7 @@
/* Update the MD4 context from the environment data */
MD4Update(&Md4Context,
(PUCHAR)Peb->ProcessParameters->Environment,
- (PUCHAR)String -
(PUCHAR)Peb->ProcessParameters->Environment);
+ (ULONG)((PUCHAR)String -
(PUCHAR)Peb->ProcessParameters->Environment));
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{