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
7c824cbf
Commit
7c824cbf
authored
Jul 15, 2016
by
Hugh McMaster
Committed by
Alexandre Julliard
Jul 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Open export file with a wide-character stream.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
86ebd5ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
regproc.c
programs/regedit/regproc.c
+5
-5
No files found.
programs/regedit/regproc.c
View file @
7c824cbf
...
@@ -1238,15 +1238,15 @@ static FILE *REGPROC_open_export_file(WCHAR *file_name, BOOL unicode)
...
@@ -1238,15 +1238,15 @@ static FILE *REGPROC_open_export_file(WCHAR *file_name, BOOL unicode)
_setmode
(
_fileno
(
file
),
_O_BINARY
);
_setmode
(
_fileno
(
file
),
_O_BINARY
);
}
else
}
else
{
{
CHAR
*
file_nameA
=
GetMultiByteString
(
file_name
);
WCHAR
wb_mode
[]
=
{
'w'
,
'b'
,
0
};
file
=
fopen
(
file_nameA
,
"wb"
);
WCHAR
regedit
[]
=
{
'r'
,
'e'
,
'g'
,
'e'
,
'd'
,
'i'
,
't'
,
0
};
file
=
_wfopen
(
file_name
,
wb_mode
);
if
(
!
file
)
{
if
(
!
file
)
{
perror
(
""
);
_wperror
(
regedit
);
output_message
(
STRING_CANNOT_OPEN_FILE
,
file_name
);
output_message
(
STRING_CANNOT_OPEN_FILE
,
file_name
);
HeapFree
(
GetProcessHeap
(),
0
,
file_nameA
);
exit
(
1
);
exit
(
1
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
file_nameA
);
}
}
if
(
unicode
)
if
(
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