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
46f11eda
Commit
46f11eda
authored
Dec 05, 2003
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print error messages to stderr as is customary.
parent
4715f132
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
59 deletions
+64
-59
regedit.c
programs/regedit/regedit.c
+12
-12
regproc.c
programs/regedit/regproc.c
+52
-47
No files found.
programs/regedit/regedit.c
View file @
46f11eda
...
...
@@ -72,10 +72,10 @@ void error_unknown_switch(char chu, char *s)
{
if
(
isalpha
(
chu
))
{
printf
(
"%s: Undefined switch /%c!
\n
"
,
getAppName
(),
chu
);
fprintf
(
stderr
,
"%s: Undefined switch /%c!
\n
"
,
getAppName
(),
chu
);
}
else
{
printf
(
"%s: Alphabetic character is expected after '%c' "
"in swit
ch specification
\n
"
,
getAppName
(),
*
(
s
-
1
));
fprintf
(
stderr
,
"%s: Alphabetic character is expected after '%c' "
"in swit
ch specification
\n
"
,
getAppName
(),
*
(
s
-
1
));
}
exit
(
1
);
}
...
...
@@ -111,7 +111,7 @@ BOOL ProcessCmdLine(LPSTR lpCmdLine)
action
=
ACTION_EXPORT
;
break
;
case
'?'
:
printf
(
usage
);
fprintf
(
stderr
,
usage
);
exit
(
0
);
break
;
default:
...
...
@@ -174,8 +174,8 @@ BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s)
get_file_name
(
&
s
,
filename
);
if
(
!
filename
[
0
])
{
printf
(
"%s: No file name is specified
\n
"
,
getAppName
());
printf
(
usage
);
fprintf
(
stderr
,
"%s: No file name is specified
\n
"
,
getAppName
());
fprintf
(
stderr
,
usage
);
exit
(
1
);
}
...
...
@@ -187,7 +187,7 @@ BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s)
processRegLines
(
reg_file
,
doSetValue
);
}
else
{
perror
(
""
);
printf
(
"%s: Can't open file
\"
%s
\"\n
"
,
getAppName
(),
filename
);
fprintf
(
stderr
,
"%s: Can't open file
\"
%s
\"\n
"
,
getAppName
(),
filename
);
exit
(
1
);
}
get_file_name
(
&
s
,
filename
);
...
...
@@ -201,9 +201,9 @@ BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s)
get_file_name
(
&
s
,
reg_key_name
);
if
(
!
reg_key_name
[
0
])
{
printf
(
"%s: No registry key is specified for removal
\n
"
,
fprintf
(
stderr
,
"%s: No registry key is specified for removal
\n
"
,
getAppName
());
printf
(
usage
);
fprintf
(
stderr
,
usage
);
exit
(
1
);
}
delete_registry_key
(
reg_key_name
);
...
...
@@ -217,8 +217,8 @@ BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s)
get_file_name
(
&
s
,
filename
);
if
(
!
filename
[
0
])
{
printf
(
"%s: No file name is specified
\n
"
,
getAppName
());
printf
(
usage
);
fprintf
(
stderr
,
"%s: No file name is specified
\n
"
,
getAppName
());
fprintf
(
stderr
,
usage
);
exit
(
1
);
}
...
...
@@ -234,7 +234,7 @@ BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s)
break
;
}
default:
printf
(
"%s: Unhandled action!
\n
"
,
getAppName
());
fprintf
(
stderr
,
"%s: Unhandled action!
\n
"
,
getAppName
());
exit
(
1
);
break
;
}
...
...
programs/regedit/regproc.c
View file @
46f11eda
This diff is collapsed.
Click to expand it.
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