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
dc1b177a
Commit
dc1b177a
authored
Jun 15, 2015
by
Hugh McMaster
Committed by
Alexandre Julliard
Jun 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regsvr32: Convert if-else block to switch statement.
parent
00c13a20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
18 deletions
+26
-18
regsvr32.c
programs/regsvr32/regsvr32.c
+26
-18
No files found.
programs/regsvr32/regsvr32.c
View file @
dc1b177a
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
#include "wine/port.h"
#include "wine/port.h"
#include <string.h>
#include <string.h>
#include <ctype.h>
#include <windows.h>
#include <windows.h>
#include <ole2.h>
#include <ole2.h>
#include "regsvr32.h"
#include "regsvr32.h"
...
@@ -252,26 +253,33 @@ int main(int argc, char* argv[])
...
@@ -252,26 +253,33 @@ int main(int argc, char* argv[])
*/
*/
for
(
i
=
1
;
i
<
argc
;
i
++
)
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
{
if
((
!
strcasecmp
(
argv
[
i
],
"/u"
))
||
(
!
strcasecmp
(
argv
[
i
],
"-u"
)))
if
((
argv
[
i
][
0
]
==
'/'
||
argv
[
i
][
0
]
==
'-'
)
&&
(
!
argv
[
i
][
2
]
||
argv
[
i
][
2
]
==
':'
))
{
switch
(
tolower
(
argv
[
i
][
1
]))
{
case
'u'
:
Unregister
=
TRUE
;
Unregister
=
TRUE
;
else
if
((
!
strcasecmp
(
argv
[
i
],
"/s"
))
||
(
!
strcasecmp
(
argv
[
i
],
"-s"
)))
break
;
case
's'
:
Silent
=
TRUE
;
Silent
=
TRUE
;
else
if
((
!
strncasecmp
(
argv
[
i
],
"/i"
,
strlen
(
"/i"
)))
||
(
!
strncasecmp
(
argv
[
i
],
"-i"
,
strlen
(
"-i"
))))
break
;
{
case
'i'
:
CallInstall
=
TRUE
;
CallInstall
=
TRUE
;
wsCommandLine
=
parse_command_line
(
argv
[
i
]
+
strlen
(
"/i"
));
wsCommandLine
=
parse_command_line
(
argv
[
i
]
+
strlen
(
"/i"
));
if
(
!
wsCommandLine
)
if
(
!
wsCommandLine
)
wsCommandLine
=
EmptyLine
;
wsCommandLine
=
EmptyLine
;
}
break
;
else
if
((
!
strcasecmp
(
argv
[
i
],
"/n"
))
||
(
!
strcasecmp
(
argv
[
i
],
"-n"
)))
case
'n'
:
CallRegister
=
FALSE
;
CallRegister
=
FALSE
;
else
if
((
!
strcasecmp
(
argv
[
i
],
"/c"
))
||
(
!
strcasecmp
(
argv
[
i
],
"-c"
)))
break
;
/* console output */
;
case
'c'
:
else
if
(
argv
[
i
][
0
]
==
'/'
&&
(
!
argv
[
i
][
2
]
||
argv
[
i
][
2
]
==
':'
))
/* console output */
;
{
break
;
output_write
(
STRING_UNRECOGNIZED_SWITCH
,
argv
[
i
]);
default:
output_write
(
STRING_USAGE
);
output_write
(
STRING_UNRECOGNIZED_SWITCH
,
argv
[
i
]);
return
1
;
output_write
(
STRING_USAGE
);
return
1
;
}
}
}
else
else
{
{
...
...
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