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
84dda235
Commit
84dda235
authored
Oct 16, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Oct 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Correctly import hex values with no data.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
56b223ad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
regproc.c
programs/regedit/regproc.c
+4
-0
regedit.c
programs/regedit/tests/regedit.c
+4
-4
No files found.
programs/regedit/regproc.c
View file @
84dda235
...
...
@@ -885,6 +885,9 @@ static WCHAR *hex_data_state(struct parser *parser, WCHAR *pos)
{
WCHAR
*
line
=
pos
;
if
(
!*
line
)
goto
set_value
;
if
(
!
convert_hex_csv_to_hex
(
parser
,
&
line
))
goto
invalid
;
...
...
@@ -896,6 +899,7 @@ static WCHAR *hex_data_state(struct parser *parser, WCHAR *pos)
prepare_hex_string_data
(
parser
);
set_value:
set_state
(
parser
,
SET_VALUE
);
return
line
;
...
...
programs/regedit/tests/regedit.c
View file @
84dda235
...
...
@@ -662,10 +662,10 @@ static void test_basic_import(void)
"
\"
Wine22h
\"
=hex:
\n
"
"
\"
Wine22i
\"
=hex(0):
\n\n
"
);
verify_reg
(
hkey
,
"Wine22a"
,
REG_SZ
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22b"
,
REG_EXPAND_SZ
,
NULL
,
0
,
TODO_REG_SIZE
);
verify_reg
(
hkey
,
"Wine22b"
,
REG_EXPAND_SZ
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22c"
,
REG_BINARY
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22d"
,
REG_DWORD
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22e"
,
REG_MULTI_SZ
,
NULL
,
0
,
TODO_REG_SIZE
);
verify_reg
(
hkey
,
"Wine22e"
,
REG_MULTI_SZ
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22f"
,
0x100
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22g"
,
0xabcd
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22h"
,
REG_BINARY
,
NULL
,
0
,
0
);
...
...
@@ -1077,10 +1077,10 @@ static void test_basic_import_unicode(void)
"
\"
Wine22h
\"
=hex:
\n
"
"
\"
Wine22i
\"
=hex(0):
\n\n
"
);
verify_reg
(
hkey
,
"Wine22a"
,
REG_SZ
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22b"
,
REG_EXPAND_SZ
,
NULL
,
0
,
TODO_REG_SIZE
);
verify_reg
(
hkey
,
"Wine22b"
,
REG_EXPAND_SZ
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22c"
,
REG_BINARY
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22d"
,
REG_DWORD
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22e"
,
REG_MULTI_SZ
,
NULL
,
0
,
TODO_REG_SIZE
);
verify_reg
(
hkey
,
"Wine22e"
,
REG_MULTI_SZ
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22f"
,
0x100
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22g"
,
0xabcd
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine22h"
,
REG_BINARY
,
NULL
,
0
,
0
);
...
...
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