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
97383a14
Commit
97383a14
authored
Jul 19, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Jul 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Append a newline to the end of the export file.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
37b5607f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
regproc.c
programs/regedit/regproc.c
+11
-2
No files found.
programs/regedit/regproc.c
View file @
97383a14
...
...
@@ -1304,10 +1304,16 @@ static void export_hex_data(FILE *fp, WCHAR **buf, DWORD type, DWORD line_len,
}
}
static
void
export_newline
(
FILE
*
fp
,
BOOL
unicode
)
{
static
const
WCHAR
newline
[]
=
{
'\r'
,
'\n'
,
0
};
REGPROC_write_line
(
fp
,
newline
,
unicode
);
}
static
void
export_data
(
FILE
*
fp
,
DWORD
type
,
size_t
line_len
,
void
*
data
,
size_t
size
,
BOOL
unicode
)
{
WCHAR
*
buf
=
NULL
;
static
const
WCHAR
newline
[]
=
{
'\r'
,
'\n'
,
0
};
switch
(
type
)
{
...
...
@@ -1328,7 +1334,7 @@ static void export_data(FILE *fp, DWORD type, size_t line_len, void *data, size_
REGPROC_write_line
(
fp
,
buf
,
unicode
);
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
REGPROC_write_line
(
fp
,
newline
,
unicode
);
export_newline
(
fp
,
unicode
);
}
static
WCHAR
*
build_subkey_path
(
WCHAR
*
path
,
DWORD
path_len
,
WCHAR
*
subkey_name
,
DWORD
subkey_len
)
...
...
@@ -1498,6 +1504,7 @@ static BOOL export_key(WCHAR *file_name, WCHAR *path, BOOL unicode)
fp
=
REGPROC_open_export_file
(
file_name
,
unicode
);
ret
=
export_registry_data
(
fp
,
key
,
path
,
unicode
);
export_newline
(
fp
,
unicode
);
fclose
(
fp
);
RegCloseKey
(
key
);
...
...
@@ -1530,7 +1537,9 @@ static BOOL export_all(WCHAR *file_name, WCHAR *path, BOOL unicode)
RegCloseKey
(
key
);
}
export_newline
(
fp
,
unicode
);
fclose
(
fp
);
return
TRUE
;
}
...
...
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