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

[v2, windows] Fix WebView2 minimum runtime version check #1456

Conversation

stffabi
Copy link
Collaborator

@stffabi stffabi commented Jun 15, 2022

No description provided.

Otherwise 4294967295 will be returned instead of -1 and the
minimum version check can't detect an older version.
So an older version than the minimum might be used and will
result in AccessViolationExceptions.
The Webview2Loader.dll are already at version 1.0.992.28 for all platforms.
@stffabi stffabi requested a review from leaanthony June 15, 2022 18:42
@@ -43,16 +42,16 @@ func CompareBrowserVersions(v1 string, v2 string) (int, error) {
return 0, err
}

var result int
var result int32
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@leaanthony leaanthony merged commit 884773a into wailsapp:master Jun 16, 2022
@stffabi stffabi deleted the feature/windows-fix-webview-minversionchecks branch June 16, 2022 09:56
@stffabi
Copy link
Collaborator Author

stffabi commented Jun 16, 2022

Thanks for merging

@leaanthony
Copy link
Member

Thanks for raising the PR! 👍👍

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.

None yet

2 participants