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
1c2b9669
Commit
1c2b9669
authored
Mar 10, 2021
by
Hugh McMaster
Committed by
Alexandre Julliard
Mar 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg/tests: Try importing registry files with escaped null characters.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aa98e3f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
import.c
programs/reg/tests/import.c
+25
-25
No files found.
programs/reg/tests/import.c
View file @
1c2b9669
...
...
@@ -1574,22 +1574,22 @@ static void test_import(void)
verify_reg
(
hkey
,
"Wine68h"
,
REG_BINARY
,
NULL
,
0
,
0
);
verify_reg
(
hkey
,
"Wine68i"
,
REG_NONE
,
NULL
,
0
,
0
);
/* Test with e
mbedd
ed null characters */
/* Test with e
scap
ed null characters */
test_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Wine69a
\"
=
\"\\
0
\n
"
"
\"
Wine69b
\"
=
\"\\
0
\\
0
\n
"
"
\"
Wine69c
\"
=
\"
Value1
\\
0
\n
"
"
\"
Wine69d
\"
=
\"
Value2
\\
0
\\
0
\\
0
\\
0
\n
"
"
\"
Wine69e
\"
=
\"
Value3
\\
0Value4
\n
"
"
\"
Wine69f
\"
=
\"\\
0Value5
\n\n
"
,
&
r
);
"
\"
Wine69a
\"
=
\"\\
\\
0
\"
\n
"
"
\"
Wine69b
\"
=
\"\\
\\
0
\\\\
0
\"
\n
"
"
\"
Wine69c
\"
=
\"
Value1
\\
\\
0
\"
\n
"
"
\"
Wine69d
\"
=
\"
Value2
\\
\\
0
\\\\
0
\\\\
0
\\\\
0
\"
\n
"
"
\"
Wine69e
\"
=
\"
Value3
\\
\\
0Value4
\"
\n
"
"
\"
Wine69f
\"
=
\"\\
\\
0Value5
\"
\n\n
"
,
&
r
);
ok
(
r
==
REG_EXIT_SUCCESS
,
"got exit code %d, expected 0
\n
"
,
r
);
verify_reg
_nonexist
(
hkey
,
"Wine69a"
);
verify_reg
_nonexist
(
hkey
,
"Wine69b"
);
verify_reg
_nonexist
(
hkey
,
"Wine69c"
);
verify_reg
_nonexist
(
hkey
,
"Wine69d"
);
verify_reg
_nonexist
(
hkey
,
"Wine69e"
);
verify_reg
_nonexist
(
hkey
,
"Wine69f"
);
verify_reg
(
hkey
,
"Wine69a"
,
REG_SZ
,
"
\\
0"
,
3
,
0
);
verify_reg
(
hkey
,
"Wine69b"
,
REG_SZ
,
"
\\
0
\\
0"
,
5
,
0
);
verify_reg
(
hkey
,
"Wine69c"
,
REG_SZ
,
"Value1
\\
0"
,
9
,
0
);
verify_reg
(
hkey
,
"Wine69d"
,
REG_SZ
,
"Value2
\\
0
\\
0
\\
0
\\
0"
,
15
,
0
);
verify_reg
(
hkey
,
"Wine69e"
,
REG_SZ
,
"Value3
\\
0Value4"
,
15
,
0
);
verify_reg
(
hkey
,
"Wine69f"
,
REG_SZ
,
"
\\
0Value5"
,
9
,
0
);
test_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
...
...
@@ -3126,19 +3126,19 @@ static void test_unicode_import(void)
/* Test with embedded null characters */
test_import_wstr
(
"
\xef\xbb\xbf
Windows Registry Editor Version 5.00
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Wine69a
\"
=
\"\\
0
\n
"
"
\"
Wine69b
\"
=
\"\\
0
\\
0
\n
"
"
\"
Wine69c
\"
=
\"
Value1
\\
0
\n
"
"
\"
Wine69d
\"
=
\"
Value2
\\
0
\\
0
\\
0
\\
0
\n
"
"
\"
Wine69e
\"
=
\"
Value3
\\
0Value4
\n
"
"
\"
Wine69f
\"
=
\"\\
0Value5
\n\n
"
,
&
r
);
"
\"
Wine69a
\"
=
\"\\
\\
0
\"
\n
"
"
\"
Wine69b
\"
=
\"\\
\\
0
\\\\
0
\"
\n
"
"
\"
Wine69c
\"
=
\"
Value1
\\
\\
0
\"
\n
"
"
\"
Wine69d
\"
=
\"
Value2
\\
\\
0
\\\\
0
\\\\
0
\\\\
0
\"
\n
"
"
\"
Wine69e
\"
=
\"
Value3
\\
\\
0Value4
\"
\n
"
"
\"
Wine69f
\"
=
\"\\
\\
0Value5
\"
\n\n
"
,
&
r
);
ok
(
r
==
REG_EXIT_SUCCESS
,
"got exit code %d, expected 0
\n
"
,
r
);
verify_reg
_nonexist
(
hkey
,
"Wine69a"
);
verify_reg
_nonexist
(
hkey
,
"Wine69b"
);
verify_reg
_nonexist
(
hkey
,
"Wine69c"
);
verify_reg
_nonexist
(
hkey
,
"Wine69d"
);
verify_reg
_nonexist
(
hkey
,
"Wine69e"
);
verify_reg
_nonexist
(
hkey
,
"Wine69f"
);
verify_reg
(
hkey
,
"Wine69a"
,
REG_SZ
,
"
\\
0"
,
3
,
0
);
verify_reg
(
hkey
,
"Wine69b"
,
REG_SZ
,
"
\\
0
\\
0"
,
5
,
0
);
verify_reg
(
hkey
,
"Wine69c"
,
REG_SZ
,
"Value1
\\
0"
,
9
,
0
);
verify_reg
(
hkey
,
"Wine69d"
,
REG_SZ
,
"Value2
\\
0
\\
0
\\
0
\\
0"
,
15
,
0
);
verify_reg
(
hkey
,
"Wine69e"
,
REG_SZ
,
"Value3
\\
0Value4"
,
15
,
0
);
verify_reg
(
hkey
,
"Wine69f"
,
REG_SZ
,
"
\\
0Value5"
,
9
,
0
);
test_import_wstr
(
"
\xef\xbb\xbf
Windows Registry Editor Version 5.00
\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