fixed typo

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3083 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2010-05-01 11:25:46 +00:00
parent c9df85fe8e
commit 0ea802d4e9
+2 -2
View File
@@ -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