Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6f244266
Commit
6f244266
authored
Jul 07, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Jul 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit/tests: Test the effects of EOF on hex data during concatenation.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a0deb171
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
regedit.c
programs/regedit/tests/regedit.c
+22
-5
No files found.
programs/regedit/tests/regedit.c
View file @
6f244266
...
...
@@ -494,11 +494,28 @@ static void test_basic_import(void)
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Wine17
\"
=hex(7):4c,69,6e,65,20,
\\
"
);
lr
=
RegQueryValueExA
(
hkey
,
"Wine17"
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
lr
==
ERROR_SUCCESS
||
broken
(
lr
==
ERROR_FILE_NOT_FOUND
)
/* WinXP */
,
"got %u, expected 0
\n
"
,
lr
);
if
(
lr
==
ERROR_SUCCESS
)
verify_reg
(
hkey
,
"Wine17"
,
REG_MULTI_SZ
,
"Line "
,
6
,
TODO_REG_SIZE
|
TODO_REG_DATA
);
"
\"
Wine17a
\"
=hex(0):56,61,6c,75,65,
\\
"
);
verify_reg
(
hkey
,
"Wine17a"
,
REG_NONE
,
"Value"
,
5
,
0
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Wine17b
\"
=hex(2):25,50,41,54,48,25,
\\
"
);
verify_reg
(
hkey
,
"Wine17b"
,
REG_EXPAND_SZ
,
"%PATH%"
,
7
,
TODO_REG_SIZE
|
TODO_REG_DATA
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Wine17c
\"
=hex:11,22,33,44,55,
\\
"
);
verify_reg
(
hkey
,
"Wine17c"
,
REG_BINARY
,
hex
,
5
,
0
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Wine17d
\"
=hex(7):4c,69,6e,65,
\\
"
);
verify_reg
(
hkey
,
"Wine17d"
,
REG_MULTI_SZ
,
"Line"
,
5
,
TODO_REG_SIZE
|
TODO_REG_DATA
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Wine17e
\"
=hex(100):56,61,6c,75,65,
\\
"
);
verify_reg
(
hkey
,
"Wine17e"
,
0x100
,
"Value"
,
5
,
0
);
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