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
e1901500
Commit
e1901500
authored
Nov 12, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Fix the wrapping of binary values in export_hkey().
Don't wait until the line overflows before wrapping it. Don't wrap the last line.
parent
f0f91a69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
regproc.c
programs/regedit/regproc.c
+9
-6
No files found.
programs/regedit/regproc.c
View file @
e1901500
...
...
@@ -1117,17 +1117,20 @@ static void export_hkey(FILE *file, HKEY key,
REGPROC_resize_char_buffer
(
line_buf
,
line_buf_size
,
line_len
);
lstrcpyW
(
*
line_buf
+
hex_pos
,
hex_prefix
);
column
=
data_pos
;
/* no line wrap yet */
for
(
i1
=
0
;
i1
<
val_buf1_size
;
i1
++
)
{
i1
=
0
;
while
(
1
)
{
wsprintfW
(
*
line_buf
+
data_pos
,
format
,
(
unsigned
int
)(
val_buf1
)[
i1
]);
data_pos
+=
2
;
if
(
i1
+
1
<
val_buf1_size
)
{
lstrcpyW
(
*
line_buf
+
data_pos
,
comma
);
data_pos
++
;
}
if
(
++
i1
==
val_buf1_size
)
break
;
lstrcpyW
(
*
line_buf
+
data_pos
,
comma
);
data_pos
++
;
column
+=
3
;
/* wrap the line */
if
(
column
>
REG_FILE_HEX_LINE_LEN
)
{
if
(
column
>
=
REG_FILE_HEX_LINE_LEN
)
{
lstrcpyW
(
*
line_buf
+
data_pos
,
concat
);
data_pos
+=
concat_len
;
column
=
concat_prefix
;
...
...
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