Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

LOADED_IMAGE is not marshaled correctly #398

Closed
AntonLapounov opened this issue Aug 7, 2018 · 1 comment
Closed

LOADED_IMAGE is not marshaled correctly #398

AntonLapounov opened this issue Aug 7, 2018 · 1 comment
Assignees
Labels

Comments

@AntonLapounov
Copy link
Member

https://github.com/AArnott/pinvoke/blob/918b9e4cabcb29f151c79aae20233eeb5bd61bef/src/DbgHelp/DbgHelp%2BLOADED_IMAGE.cs#L65-L79

The fields fSystemImage, fDOSImage, and fReadOnly must be marshaled as 1-byte BOOLEAN values; please use UnmanagedType.U1 for them. At present they are marshaled as 4-byte BOOL values (UnmanagedType.Bool), which corrupts data in the LOADED_IMAGE structure. In addition, it would be better to change the type of the SizeOfImage field to uint.

@AArnott AArnott added the bug label Aug 7, 2018
@AArnott AArnott self-assigned this Dec 23, 2019
@AArnott
Copy link
Collaborator

AArnott commented Dec 23, 2019

Thanks for your report, @AntonLapounov

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants