-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
winregistry.py: handle value name containting backslash character #1767
Conversation
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.
Hey @DidierA, thanks for your changes!
I've been reviewing them and posted some suggestions. Think they are cleaner this way according to our current use cases.
Applied suggestions to move forward with the bug resolution |
Hi, Sorry for the late reply, I was on leave. The idea behind accepting a REG_NK was to allow multiple calls on the same key to reuse the result of findKey(), such as when you dump an entire tree. However I don't have a problem with the reviewed changes. |
winregistry.Registry.getValue()
splits keyValue on backslash to separate key and value. But value names can contain backslash, and calling getValue on such a value will cause a ValueError exception.This commit corrects this bug while keeping compatibility with old code.