http://bugs.winehq.org/show_bug.cgi?id=31953
Bug #: 31953 Summary: regedit crashes when renaming the HKEY_XXX keys Product: Wine Version: 1.5.15 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: fgouget@codeweavers.com Classification: Unclassified
Created attachment 42101 --> http://bugs.winehq.org/attachment.cgi?id=42101 Shows the duplicated HKEY_USERS key
It should not be possible to rename these keys, and indeed a right-click on them shows that the 'Rename' menu is disabled. But a triple-click on HKEY_LOCAL_MACHINE or HKEY_USERS still puts them in edit mode. Then clicking away from the key causes regedit to crash:
wine: Unhandled stack overflow at address 0x7bc6739e (thread 0009), starting debugger... err:seh:setup_exception_record stack overflow 816 bytes in thread 0009 eip 7bc49290 esp 00231000 stack 0x230000-0x231000-0x330000
What appears to happen is that the key is copied into itself again and again until the stack overflow. As a result a second try gives a 'File exists' error instead.
http://bugs.winehq.org/show_bug.cgi?id=31953
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com 2012-10-13 05:11:13 CDT --- I don't know about newer versions but on XP it's not possible to edit item name in place - clicking on item never produces an edit box. If we won't the same behaviour it's trivial to fix, just remove TVS_EDITLABELS from TreeView style bits on control creation.
http://bugs.winehq.org/show_bug.cgi?id=31953
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com 2012-10-13 08:00:22 CDT --- That was stupid, if you disable this style you won't be able to rename with menu command too. So a subclassing or toggling this style before/after menu rename request could be a solution.
http://bugs.winehq.org/show_bug.cgi?id=31953
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
http://bugs.winehq.org/show_bug.cgi?id=31953
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com 2012-10-15 23:18:22 CDT --- Created attachment 42149 --> http://bugs.winehq.org/attachment.cgi?id=42149 ignore root rename
The attached patch will ignore the renaming operation on root elements. Possibly not what you intended anyway =)
http://bugs.winehq.org/show_bug.cgi?id=31953
Daniel Jelinski djelinski1@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |djelinski1@gmail.com
--- Comment #4 from Daniel Jelinski djelinski1@gmail.com 2012-10-16 13:03:38 CDT --- (In reply to comment #1)
I don't know about newer versions but on XP it's not possible to edit item name in place - clicking on item never produces an edit box.
Strange, I'm quite certain that it was possible in all versions I used. Definitely possible on 2008.
http://bugs.winehq.org/show_bug.cgi?id=31953
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |00cpxxx@gmail.com
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com 2012-10-16 13:43:02 CDT --- Patch sent: http://source.winehq.org/patches/data/91035
http://bugs.winehq.org/show_bug.cgi?id=31953
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |003622c015298d2c4fcbdf63ccc | |62ca036acd0db Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #6 from Austin English austinenglish@gmail.com 2012-10-16 16:29:11 CDT --- http://source.winehq.org/git/wine.git/commitdiff/003622c015298d2c4fcbdf63ccc...
http://bugs.winehq.org/show_bug.cgi?id=31953
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2012-10-26 13:29:48 CDT --- Closing bugs fixed in 1.5.16.