Skip to content

I have discovered a serious error and have found a solution. I hope it can be fixed. #13

@ZheYinX

Description

@ZheYinX

I'm using this library, and some methods crash when called. When I enable validation mode, I keep receiving ValueError warnings. After investigation, I found that the size and offsets of many structures are incorrect. Then I realized that Bool in IPL should be 4 bytes, not 1 byte. So, removing

[MarshalAs(UnmanagedType.U1)]

solves the problem. I’m not very familiar with the conversion logic in this project, so I don’t dare to modify the code arbitrarily. If anyone understands this well, I’d appreciate it if they could help fix it. I also hope the original author can pay a bit more attention to this project—it’s really great!
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions