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
aabdc271
Commit
aabdc271
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 hex values with no data.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a437382f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
regproc.c
programs/regedit/regproc.c
+6
-0
No files found.
programs/regedit/regproc.c
View file @
aabdc271
...
...
@@ -1300,6 +1300,8 @@ static void export_hex_data(FILE *fp, WCHAR **buf, DWORD type, DWORD line_len,
line_len
+=
export_hex_data_type
(
fp
,
type
,
unicode
);
if
(
!
size
)
return
;
if
(
!
unicode
&&
(
type
==
REG_EXPAND_SZ
||
type
==
REG_MULTI_SZ
))
data
=
GetMultiByteStringN
(
data
,
size
/
sizeof
(
WCHAR
),
&
size
);
...
...
@@ -1354,8 +1356,12 @@ static void export_data(FILE *fp, WCHAR *value_name, DWORD value_len, DWORD type
break
;
}
if
(
size
||
type
==
REG_SZ
)
{
REGPROC_write_line
(
fp
,
buf
,
unicode
);
heap_free
(
buf
);
}
export_newline
(
fp
,
unicode
);
}
...
...
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