mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
fixed typo
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3083 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user