[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
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