Static assert for VirtualQueryInfo struct size

Since compilers can be weird, having a static assert for this will be helpful.
Granted, this probably wont need changing after this PR.
This commit is contained in:
Stephen Miller 2025-05-10 21:41:20 -05:00
parent 10879cad78
commit 69a99bfc28

View File

@ -68,6 +68,8 @@ struct OrbisVirtualQueryInfo {
u8 is_committed : 1; u8 is_committed : 1;
char name[ORBIS_KERNEL_MAXIMUM_NAME_LENGTH]; char name[ORBIS_KERNEL_MAXIMUM_NAME_LENGTH];
}; };
static_assert(sizeof(OrbisVirtualQueryInfo) == 72,
"OrbisVirtualQueryInfo struct size is incorrect");
struct OrbisKernelBatchMapEntry { struct OrbisKernelBatchMapEntry {
void* start; void* start;