From 0ea802d4e9da7bf5af0c864500c09bbdc6bbc2ab Mon Sep 17 00:00:00 2001 From: wj32 Date: Sat, 1 May 2010 11:25:46 +0000 Subject: [PATCH] fixed typo git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3083 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- 2.x/trunk/phlib/support.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2.x/trunk/phlib/support.c b/2.x/trunk/phlib/support.c index 64868334c..49864b774 100644 --- a/2.x/trunk/phlib/support.c +++ b/2.x/trunk/phlib/support.c @@ -551,9 +551,9 @@ VOID PhGenerateGuid( random[i] = RtlRandomEx(&seed); // random[0] is usable - *(PSHORT)Guid->Data1 = (SHORT)random[0]; + *(PSHORT)&Guid->Data1 = (SHORT)random[0]; // top byte from random[0] is usable - *((PSHORT)Guid->Data1 + 1) = (SHORT)((random[0] >> 16) | (random[1] & 0xff)); + *((PSHORT)&Guid->Data1 + 1) = (SHORT)((random[0] >> 16) | (random[1] & 0xff)); // top 2 bytes from random[1] are usable Guid->Data2 = (SHORT)(random[1] >> 8); // random[2] is usable