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
7b95ddcb
Commit
7b95ddcb
authored
Jul 06, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Jul 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Hex data lines may be terminated by a semicolon.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
23c93d30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
regproc.c
programs/regedit/regproc.c
+2
-0
regedit.c
programs/regedit/tests/regedit.c
+8
-8
No files found.
programs/regedit/regproc.c
View file @
7b95ddcb
...
...
@@ -303,6 +303,8 @@ static BOOL convert_hex_csv_to_hex(struct parser *parser, WCHAR **str)
*
str
=
end
+
1
;
return
TRUE
;
}
else
if
(
*
end
==
';'
)
return
TRUE
;
return
FALSE
;
}
...
...
programs/regedit/tests/regedit.c
View file @
7b95ddcb
...
...
@@ -364,7 +364,7 @@ static void test_basic_import(void)
verify_reg
(
hkey
,
"Wine10b"
,
REG_NONE
,
"V
\0
a
\0
l
\0
u
\0
e
\0\0
"
,
12
,
0
);
verify_reg
(
hkey
,
"Wine10c"
,
REG_NONE
,
"V
\0
a
\0
l
\0
u
\0
e
\0\0
"
,
12
,
0
);
verify_reg
(
hkey
,
"Wine10d"
,
REG_NONE
,
"V
\0
a
\0
l
\0
u"
,
8
,
0
);
todo_wine
verify_reg
(
hkey
,
"Wine10e"
,
REG_NONE
,
"V
\0
a
\0
l
\0
u"
,
8
,
0
);
verify_reg
(
hkey
,
"Wine10e"
,
REG_NONE
,
"V
\0
a
\0
l
\0
u"
,
8
,
0
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
...
...
@@ -394,10 +394,10 @@ static void test_basic_import(void)
size
=
sizeof
(
buffer
);
memset
(
buffer
,
'-'
,
size
);
lr
=
RegQueryValueExA
(
hkey
,
"Wine11e"
,
NULL
,
&
type
,
(
BYTE
*
)
&
buffer
,
&
size
);
todo_wine
ok
(
lr
==
ERROR_SUCCESS
,
"RegQueryValueExA failed: %d
\n
"
,
lr
);
todo_wine
ok
(
type
==
REG_EXPAND_SZ
,
"got wrong type %u, expected %u
\n
"
,
type
,
REG_EXPAND_SZ
);
ok
(
lr
==
ERROR_SUCCESS
,
"RegQueryValueExA failed: %d
\n
"
,
lr
);
ok
(
type
==
REG_EXPAND_SZ
,
"got wrong type %u, expected %u
\n
"
,
type
,
REG_EXPAND_SZ
);
todo_wine
ok
(
size
==
6
||
broken
(
size
==
5
)
/* WinXP */
,
"got wrong size %u, expected 6
\n
"
,
size
);
todo_wine
ok
(
memcmp
(
buffer
,
"%PATH"
,
size
)
==
0
,
"got wrong data
\n
"
);
ok
(
memcmp
(
buffer
,
"%PATH"
,
size
)
==
0
,
"got wrong data
\n
"
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
...
...
@@ -419,7 +419,7 @@ static void test_basic_import(void)
verify_reg
(
hkey
,
"Wine12b"
,
REG_BINARY
,
hex
,
sizeof
(
hex
),
0
);
verify_reg
(
hkey
,
"Wine12c"
,
REG_BINARY
,
hex
,
sizeof
(
hex
),
0
);
verify_reg
(
hkey
,
"Wine12d"
,
REG_BINARY
,
hex
,
6
,
0
);
todo_wine
verify_reg
(
hkey
,
"Wine12e"
,
REG_BINARY
,
hex
,
6
,
0
);
verify_reg
(
hkey
,
"Wine12e"
,
REG_BINARY
,
hex
,
6
,
0
);
/* Test import with subkeys */
exec_import_str
(
"REGEDIT4
\n\n
"
...
...
@@ -518,7 +518,7 @@ static void test_basic_import(void)
verify_reg
(
hkey
,
"Wine18b"
,
REG_MULTI_SZ
,
"Line concatenation
\0
"
,
20
,
0
);
verify_reg
(
hkey
,
"Wine18c"
,
REG_MULTI_SZ
,
"Line concatenation
\0
"
,
20
,
0
);
verify_reg
(
hkey
,
"Wine18d"
,
REG_MULTI_SZ
,
"Line concat"
,
12
,
TODO_REG_SIZE
);
todo_wine
verify_reg
(
hkey
,
"Wine18e"
,
REG_MULTI_SZ
,
"Line concat"
,
12
,
0
);
verify_reg
(
hkey
,
"Wine18e"
,
REG_MULTI_SZ
,
"Line concat"
,
12
,
TODO_REG_SIZE
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
...
...
@@ -538,7 +538,7 @@ static void test_basic_import(void)
verify_reg
(
hkey
,
"Wine19b"
,
0x100
,
"%PATH%"
,
7
,
0
);
verify_reg
(
hkey
,
"Wine19c"
,
0x100
,
"%PATH%"
,
7
,
0
);
verify_reg
(
hkey
,
"Wine19d"
,
0x100
,
"%PATH"
,
5
,
0
);
todo_wine
verify_reg
(
hkey
,
"Wine19e"
,
0x100
,
"%PATH"
,
5
,
0
);
verify_reg
(
hkey
,
"Wine19e"
,
0x100
,
"%PATH"
,
5
,
0
);
/* Test null-termination of REG_EXPAND_SZ and REG_MULTI_SZ data*/
exec_import_str
(
"REGEDIT4
\n\n
"
...
...
@@ -1314,7 +1314,7 @@ static void test_comments(void)
" 63,6f,6e,
\\
;comment
\n
"
" 63,61,74,;comment
\n
"
" 65,6e,61,74,69,6f,6e,00,00
\n\n
"
);
todo_wine
verify_reg
(
hkey
,
"Multi-Line2"
,
REG_MULTI_SZ
,
"Line concat"
,
12
,
0
);
verify_reg
(
hkey
,
"Multi-Line2"
,
REG_MULTI_SZ
,
"Line concat"
,
12
,
TODO_REG_SIZE
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
...
...
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