[NTOS:EX] Move the C_ASSERT UUID_CACHED_VALUES_STRUCT.GuidInit to a better place, where the structure is defined.

This commit is contained in:
Hermès Bélusca-Maïto 2020-11-05 19:03:30 +01:00
parent 3c722e35b1
commit ce55fef1e5
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 2 additions and 1 deletions

View file

@ -394,7 +394,6 @@ ExUuidCreate(OUT UUID *Uuid)
{
Time.QuadPart = ExpUuidCachedValues.Time;
C_ASSERT(sizeof(ExpUuidCachedValues.GuidInit) == sizeof(Uuid->Data4));
RtlCopyMemory(Uuid->Data4,
ExpUuidCachedValues.GuidInit,
sizeof(Uuid->Data4));

View file

@ -183,6 +183,8 @@ typedef struct _UUID_CACHED_VALUES_STRUCT
};
} UUID_CACHED_VALUES_STRUCT, *PUUID_CACHED_VALUES_STRUCT;
C_ASSERT(RTL_FIELD_SIZE(UUID_CACHED_VALUES_STRUCT, GuidInit) == RTL_FIELD_SIZE(UUID, Data4));
/* INITIALIZATION FUNCTIONS *************************************************/
BOOLEAN