Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4de63620
Commit
4de63620
authored
Mar 01, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Mar 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Correctly parse key name containing ']' when deleting/exporting.
parent
054fd8cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
regproc.c
programs/regedit/regproc.c
+9
-5
No files found.
programs/regedit/regproc.c
View file @
4de63620
...
@@ -449,12 +449,16 @@ LPSTR getRegKeyName(LPSTR lpLine)
...
@@ -449,12 +449,16 @@ LPSTR getRegKeyName(LPSTR lpLine)
keyNameBeg
=
strchr
(
lpLineCopy
,
'\\'
);
/* The key name start by '\' */
keyNameBeg
=
strchr
(
lpLineCopy
,
'\\'
);
/* The key name start by '\' */
if
(
keyNameBeg
)
{
if
(
keyNameBeg
)
{
LPSTR
keyNameEnd
;
keyNameBeg
++
;
/* is not part of the name */
keyNameBeg
++
;
/* is not part of the name */
keyNameEnd
=
strrchr
(
lpLineCopy
,
']'
);
if
(
keyNameEnd
)
{
if
(
lpLine
[
0
]
==
'['
)
/* need to find matching ']' */
*
keyNameEnd
=
'\0'
;
/* remove ']' from the key name */
{
LPSTR
keyNameEnd
;
keyNameEnd
=
strrchr
(
lpLineCopy
,
']'
);
if
(
keyNameEnd
)
{
*
keyNameEnd
=
'\0'
;
/* remove ']' from the key name */
}
}
}
}
else
{
}
else
{
keyNameBeg
=
lpLineCopy
+
strlen
(
lpLineCopy
);
/* branch - empty string */
keyNameBeg
=
lpLineCopy
+
strlen
(
lpLineCopy
);
/* branch - empty string */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment