CC#•Created by Rosentti on 9/14/2024 in #help Strange Marshalling issue
Welp, that was a quick fix that I didn't think of before. I just removed StructLayout from the Handle_t type altogether, and that fixed it. Now both of them are 8 bytes, as expected. I guess it layouted the internal fields of an Int32 too?