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