Commit d1134196 authored by Lei Zhang's avatar Lei Zhang Committed by Alexandre Julliard

regedit: Correctly parse key name containing ']'.

parent 9b4191ea
......@@ -503,7 +503,7 @@ LPSTR getRegKeyName(LPSTR lpLine)
LPSTR keyNameEnd;
keyNameBeg++; /* is not part of the name */
keyNameEnd = strchr(lpLineCopy, ']');
keyNameEnd = strrchr(lpLineCopy, ']');
if (keyNameEnd) {
*keyNameEnd = '\0'; /* remove ']' from the key name */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment