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

Handle case when TaskBarList could not be created #15852

Merged
merged 2 commits into from
May 30, 2024

Conversation

mojoe-playground
Copy link
Contributor

What does the pull request do?

Checks whether TaskBarList successfully created.

What is the current behavior?

Current code assumes TaskBarList is supported on all windows version. On Windows Server Core editions TaskBarList is not supported (no taskbar) and creating a window crashes the application.

What is the updated/expected behavior with this PR?

Applications could start on Windows Server Core. Tested on Windows Server 2016 Core.

Checklist

Fixed issues

Fixes #15840

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0048704-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@cla-avalonia
Copy link
Collaborator

cla-avalonia commented May 29, 2024

  • All contributors have signed the CLA.

@mojoe-playground
Copy link
Contributor Author

@cla-avalonia agree

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0048708-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

Copy link
Member

@maxkatz6 maxkatz6 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@maxkatz6 maxkatz6 added os-windows backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch bug labels May 30, 2024
@maxkatz6 maxkatz6 added this pull request to the merge queue May 30, 2024
Merged via the queue into AvaloniaUI:master with commit 0063a5e May 30, 2024
11 checks passed
Luoyingliang added a commit to Luoyingliang/Avalonia that referenced this pull request May 31, 2024
grokys pushed a commit that referenced this pull request Jun 4, 2024
* Handle case when TaskBarList could not be created

* Use HRESULT.S_OK for better clarity
@grokys grokys added backported-11.1.x and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch backported-11.1.x bug os-windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when opening window at startup on Windows Server Core
6 participants