Repository navigation
Fix crash in the modern progress window when ITaskbarList3::HrInit fails - #1066
Merged
Merged
Conversation
…:HrInit fails. (M2Team#1065) (Collaborate with claude-opus-5-5 @ Claude Code.) Signed-off-by: Roman Wagner <roman.wagner@pm.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1065.
When
ITaskbarList3::HrInit()fails,InitializeComponentsetsm_TaskbarListto null, butUpdateStatusstill callsSetProgressValueon it and crashes. I hit this because Zebar creates its ownShell_TrayWndwindow. The fix is the same null check thatUpdateTaskbarProgressStatealready does.To test it I ran a fake
Shell_TrayWndwindow on Windows 11 25H2 x64. With that window up, the Store build (7.0.1882.0) crashes as soon as extraction starts, and the x64 portable build from this branch extracts fine. I couldn't build locally because my VS install is missing the C++ UWP tools, so I tested the artifacts from the CI run on my fork: https://github.com/rojnwa/NanaZip/actions/runs/46523515922