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

Fix error from SetupDiGetDeviceInterfaceDetail() on 32 bit #19

Merged
merged 1 commit into from
Mar 6, 2019

Conversation

Oxalin
Copy link

@Oxalin Oxalin commented Mar 6, 2019

Use the structure, not the pointer to it. We were "lucky" it was working
properly.

This should fix get_intf_detail() on 32 bit where
SetupDiGetDeviceInterfaceDetail() would fail with error 0x6f8
ERROR_INVALID_USER_BUFFER
#17

Signed-off-by: Alexandre Demers alexandre.f.demers@gmail.com

Use the structure, not the pointer to it. We were "lucky" it was working
properly.

This should fix get_intf_detail() on 32 bit where
SetupDiGetDeviceInterfaceDetail() would fail with error 0x6f8
ERROR_INVALID_USER_BUFFER
#17

Signed-off-by: Alexandre Demers <alexandre.f.demers@gmail.com>
@cezuni cezuni merged commit f72aed2 into master Mar 6, 2019
@cezuni
Copy link

cezuni commented Mar 6, 2019

@Oxalin : Yeah, we were super lucky.. :) Is this one reason to prepare 128bit architecture?

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

Successfully merging this pull request may close these issues.

2 participants