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
8a8a2c9b
Commit
8a8a2c9b
authored
Nov 10, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Nov 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Correctly export REG_DWORD values with no data.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aabdc271
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
regproc.c
programs/regedit/regproc.c
+6
-2
regedit.c
programs/regedit/tests/regedit.c
+2
-2
No files found.
programs/regedit/regproc.c
View file @
8a8a2c9b
...
...
@@ -1345,8 +1345,12 @@ static void export_data(FILE *fp, WCHAR *value_name, DWORD value_len, DWORD type
export_string_data
(
&
buf
,
data
,
size
);
break
;
case
REG_DWORD
:
export_dword_data
(
&
buf
,
data
);
break
;
if
(
size
)
{
export_dword_data
(
&
buf
,
data
);
break
;
}
/* fall through */
case
REG_NONE
:
case
REG_EXPAND_SZ
:
case
REG_BINARY
:
...
...
programs/regedit/tests/regedit.c
View file @
8a8a2c9b
...
...
@@ -3588,7 +3588,7 @@ static void test_export(void)
RegCloseKey
(
hkey
);
run_regedit_exe
(
"regedit.exe /e file.reg HKEY_CURRENT_USER
\\
"
KEY_BASE
);
ok
(
compare_export
(
"file.reg"
,
empty_hex_test
,
TODO_REG_COMPARE
),
"compare_export() failed
\n
"
);
ok
(
compare_export
(
"file.reg"
,
empty_hex_test
,
0
),
"compare_export() failed
\n
"
);
delete_key
(
HKEY_CURRENT_USER
,
KEY_BASE
);
...
...
@@ -3605,7 +3605,7 @@ static void test_export(void)
RegCloseKey
(
hkey
);
run_regedit_exe
(
"regedit.exe /e file.reg HKEY_CURRENT_USER
\\
"
KEY_BASE
);
ok
(
compare_export
(
"file.reg"
,
empty_hex_test2
,
TODO_REG_COMPARE
),
"compare_export() failed
\n
"
);
ok
(
compare_export
(
"file.reg"
,
empty_hex_test2
,
0
),
"compare_export() failed
\n
"
);
delete_key
(
HKEY_CURRENT_USER
,
KEY_BASE
);
...
...
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