You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The szModule and szExePath fields are completely wrong and will lead to a failed Module32First call when the dwSize field is set to Unsafe.SizeOf<MODULEENTRY32>().
Not a big problem. I kinda accidentally repro'd it once, then it disappeared, so I was able to figure it out. Thanks for the report. I'll get it fixed.
Andrew Arnott (@AArnott) any chance a release with this fix could be pushed soon-ish? I keep running into this in various structs and it's getting harder and harder to work around - structs with inline arrays in the middle, for example, are almost impossible to work with.
Activity
AArnott commentedon Jul 2, 2022
These two fields should be fixed-length inline arrays.
AArnott commentedon Jul 2, 2022
It only repros for me when
allowMarshaling: false.alexrp commentedon Jul 2, 2022
Ah, you're right, I forgot to include that I have that set, sorry.
AArnott commentedon Jul 2, 2022
Not a big problem. I kinda accidentally repro'd it once, then it disappeared, so I was able to figure it out. Thanks for the report. I'll get it fixed.
Fix NativeProcess.Modules.
Add test for inline arrays without marshaling
Fix inline arrays when marshaling is off
alexrp commentedon Jul 12, 2022
Andrew Arnott (@AArnott) any chance a release with this fix could be pushed soon-ish? I keep running into this in various structs and it's getting harder and harder to work around - structs with inline arrays in the middle, for example, are almost impossible to work with.
AArnott commentedon Jul 12, 2022
Alex Rønne Petersen (@alexrp) 0.2.10-beta is going to nuget.org now.
alexrp commentedon Jul 13, 2022
I can confirm the fix works on my end as well. Thanks!
Fix NativeProcess.Modules.