regedit: Correctly parse key name containing ']'.

This commit is contained in:
Lei Zhang 2007-02-28 17:41:45 -08:00 committed by Alexandre Julliard
parent 9b4191eaf8
commit d113419682
1 changed files with 1 additions and 1 deletions

View File

@ -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 */
}