Skip to content

gh-161021: Fix the error code reported by winreg.ExpandEnvironmentStrings() - #161022

Open
aisk wants to merge 1 commit into
python:mainfrom
aisk:gh-161021-winreg-expandenv-errcode
Open

aisk wants to merge 1 commit into
python:mainfrom
aisk:gh-161021-winreg-expandenv-errcode

Conversation

@aisk

@aisk aisk commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

This error path is only reached if the second ExpandEnvironmentStringsW() call fails, which is hard to reproduce, so I didn't add a test. The fix is also trivial, so I don't think a test is necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant