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
5669282e
Commit
5669282e
authored
Jun 08, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Jun 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Do not create registry keys that end without a closing bracket.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eca563e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
regproc.c
programs/regedit/regproc.c
+1
-0
regedit.c
programs/regedit/tests/regedit.c
+3
-3
No files found.
programs/regedit/regproc.c
View file @
5669282e
...
...
@@ -568,6 +568,7 @@ static void processRegEntry(WCHAR* stdInput, BOOL isUnicode)
keyEnd
=
strrchrW
(
stdInput
,
']'
);
if
(
keyEnd
)
*
keyEnd
=
'\0'
;
else
return
;
/* delete the key if we encounter '-' at the start of reg key */
if
(
stdInput
[
0
]
==
'-'
)
...
...
programs/regedit/tests/regedit.c
View file @
5669282e
...
...
@@ -1155,7 +1155,7 @@ static void test_key_creation_and_deletion(void)
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"
\\
No_Closing_Bracket
\n
"
);
todo_wine
verify_key_nonexist
(
hkey
,
"No_Closing_Bracket"
);
verify_key_nonexist
(
hkey
,
"No_Closing_Bracket"
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[ HKEY_CURRENT_USER
\\
"
KEY_BASE
"
\\
Subkey1a]
\n
"
);
...
...
@@ -1210,7 +1210,7 @@ static void test_key_creation_and_deletion(void)
ok
(
lr
==
ERROR_SUCCESS
,
"RegCloseKey failed: got %d, expected 0
\n
"
,
lr
);
lr
=
RegDeleteKeyA
(
HKEY_CURRENT_USER
,
KEY_BASE
);
todo_wine
ok
(
lr
==
ERROR_SUCCESS
,
"RegDeleteKeyA failed: got %d, expected 0
\n
"
,
lr
);
ok
(
lr
==
ERROR_SUCCESS
,
"RegDeleteKeyA failed: got %d, expected 0
\n
"
,
lr
);
}
static
void
test_value_deletion
(
void
)
...
...
@@ -1262,7 +1262,7 @@ static void test_value_deletion(void)
ok
(
lr
==
ERROR_SUCCESS
,
"RegCloseKey failed: got %d, expected 0
\n
"
,
lr
);
lr
=
RegDeleteKeyA
(
HKEY_CURRENT_USER
,
KEY_BASE
);
todo_wine
ok
(
lr
==
ERROR_SUCCESS
,
"RegDeleteKeyA failed: got %d, expected 0
\n
"
,
lr
);
ok
(
lr
==
ERROR_SUCCESS
,
"RegDeleteKeyA failed: got %d, expected 0
\n
"
,
lr
);
}
START_TEST
(
regedit
)
...
...
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