genius257 / DllStructEx

Extended DllStruct for AutoIt3
MIT License
2 stars 1 forks source link

UNIONs does not reuse the same memory. #7

Closed genius257 closed 3 years ago

genius257 commented 3 years ago
$tUnion = DllStructExCreate("union {INT a;INT b;} u;")
$tUnion.u.a = 123;
ConsoleWrite($tUnion.u.a&@CRLF); 123
ConsoleWrite($tUnion.u.b&@CRLF); not 123, indicating we read outside the allocated memory space of the struct!