-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
GetDpiForMonitor checks for Windows 8.0, but should check for 8.1 #15734
GetDpiForMonitor checks for Windows 8.0, but should check for 8.1 #15734
Conversation
Comparing WindowVersion with Windows8_1 instead of Windows8
You can test this PR using the following package version. |
|
@cla-avalonia agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
You can test this PR using the following package version. |
What does the pull request do?
Fixes #7284
Comparing windows version with Windows8_1 instead of Windows8.
The crash occurs because the Windows Server 2012 version is 6.2.9200, which is greater than 6.2, and comparing it with version 6.2 is incorrect. The function
GetDpiForMonitor
is only supported from Windows Server 2012 R2 (version 6.3).What is the current behavior?
The application crashes on Windows Server 2012.
What is the updated/expected behavior with this PR?
Run application on Windows Server 2012 (version 6.2.9200), it should not crash on window creating.
Fixed issues
Fixes #7284