Skip to content

Fix crash in the modern progress window when ITaskbarList3::HrInit fails - #1066

Merged
MouriNaruto merged 1 commit into
M2Team:mainfrom
rojnwa:fix-taskbar-progress-null-crash
Nov 30, 2026
Merged

MouriNaruto merged 1 commit into
M2Team:mainfrom
rojnwa:fix-taskbar-progress-null-crash

Conversation

@rojnwa

@rojnwa rojnwa commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #1065.

When ITaskbarList3::HrInit() fails, InitializeComponent sets m_TaskbarList to null, but UpdateStatus still calls SetProgressValue on it and crashes. I hit this because Zebar creates its own Shell_TrayWnd window. The fix is the same null check that UpdateTaskbarProgressState already does.

To test it I ran a fake Shell_TrayWnd window 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

…:HrInit fails. (M2Team#1065) (Collaborate with claude-opus-5-5 @ Claude Code.)

Signed-off-by: Roman Wagner <roman.wagner@pm.me>
@MouriNaruto
MouriNaruto merged commit d3889ef into M2Team:main Nov 30, 2026
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.

Modern progress window crashes when ITaskbarList3::HrInit fails

2 participants