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 DLL load error in WinGetUtil #1844

Merged
merged 3 commits into from
Jan 12, 2022
Merged

Conversation

florelis
Copy link
Member

@florelis florelis commented Jan 12, 2022

Load and call IsWow64GuestMachineSupported() dynamically only if it is available, instead of calling it directly. This prevents a DLL load error when running on RS1, as happens on the Azure Functions of the service.

This is based on the existing pattern to call GetMachineTypeAttributes().

Microsoft Reviewers: Open in CodeFlow

@florelis florelis requested a review from a team as a code owner January 12, 2022 04:16
@florelis florelis merged commit cee9592 into microsoft:master Jan 12, 2022
@florelis florelis deleted the loadlibrary branch January 13, 2022 01:52
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