On Wed Mar 27 09:05:11 2024 +0000, Jinoh Kang wrote:
Let me elaborate: `SIZE_T` fields depends on bitness. The Wow64 translation layer is responsible for translating **64-bit** structure returned by native syscall, to **32-bit** structure usable by the application. We don't run new-style wow64 tests on GitLab CI yet, but I think this MR will fail those if `QUOTA_LIMITS` indeed has `SIZE_T` fields (haven't checked).
We need a 32bit structure in struct32.h for QUOTA_LIMITS and function to convert the values. I have created a patch for it, so you can squash it in. But we may have to test and implement for QUOTA_LIMITS_EX as well (that might be for future)[wow64_quota.diff](/uploads/7f6e62e72778bb3af8b1e89fe3004009/wow64_quota.diff).