Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SYSTEM_INFO does not implement Default #839

Closed
Ben-Lichtman opened this issue Jun 6, 2021 · 2 comments
Closed

SYSTEM_INFO does not implement Default #839

Ben-Lichtman opened this issue Jun 6, 2021 · 2 comments

Comments

@Ben-Lichtman
Copy link

implementing Default would be useful since GetSystemInfo requires a SYSTEM_INFO out pointer. Without Default this is more difficult to produce.

@kennykerr
Copy link
Collaborator

This is a known limitation for some of the more interesting structs (mostly unions and structs containing unions). I plan to fix this. #656

@Ben-Lichtman
Copy link
Author

Ah I didn't think of that, in retrospect that makes a lot of sense... I'll close this issue and just use MaybeUninit::zeroed().assume_init() as as stopgap for now.

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

No branches or pull requests

2 participants