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
039fc878
Commit
039fc878
authored
Apr 14, 2022
by
Hugh McMaster
Committed by
Alexandre Julliard
Apr 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Use wide character string literals in regedit.c.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
49df6ad5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
regedit.c
programs/regedit/regedit.c
+3
-6
No files found.
programs/regedit/regedit.c
View file @
039fc878
...
@@ -107,16 +107,14 @@ static void PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
...
@@ -107,16 +107,14 @@ static void PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
switch
(
action
)
{
switch
(
action
)
{
case
ACTION_ADD
:
{
case
ACTION_ADD
:
{
WCHAR
*
filename
=
argv
[
*
i
];
WCHAR
*
filename
=
argv
[
*
i
];
WCHAR
hyphen
[]
=
{
'-'
,
0
};
WCHAR
*
realname
=
NULL
;
WCHAR
*
realname
=
NULL
;
FILE
*
reg_file
;
FILE
*
reg_file
;
if
(
!
lstrcmpW
(
filename
,
hyphen
))
if
(
!
lstrcmpW
(
filename
,
L"-"
))
reg_file
=
stdin
;
reg_file
=
stdin
;
else
else
{
{
int
size
;
int
size
;
WCHAR
rb_mode
[]
=
{
'r'
,
'b'
,
0
};
size
=
SearchPathW
(
NULL
,
filename
,
NULL
,
0
,
NULL
,
NULL
);
size
=
SearchPathW
(
NULL
,
filename
,
NULL
,
0
,
NULL
,
NULL
);
if
(
size
>
0
)
if
(
size
>
0
)
...
@@ -130,11 +128,10 @@ static void PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
...
@@ -130,11 +128,10 @@ static void PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
heap_free
(
realname
);
heap_free
(
realname
);
return
;
return
;
}
}
reg_file
=
_wfopen
(
realname
,
rb_mode
);
reg_file
=
_wfopen
(
realname
,
L"rb"
);
if
(
reg_file
==
NULL
)
if
(
reg_file
==
NULL
)
{
{
WCHAR
regedit
[]
=
{
'r'
,
'e'
,
'g'
,
'e'
,
'd'
,
'i'
,
't'
,
0
};
_wperror
(
L"regedit"
);
_wperror
(
regedit
);
output_message
(
STRING_CANNOT_OPEN_FILE
,
filename
);
output_message
(
STRING_CANNOT_OPEN_FILE
,
filename
);
heap_free
(
realname
);
heap_free
(
realname
);
return
;
return
;
...
...
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