regedit: Correctly parse key name containing ']'.
This commit is contained in:
parent
9b4191eaf8
commit
d113419682
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue