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
d3ddc118
Commit
d3ddc118
authored
Apr 11, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sc: Fix typos in CLI arguments parsing.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
86cbfa4b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sc.c
programs/sc/sc.c
+4
-4
No files found.
programs/sc/sc.c
View file @
d3ddc118
...
@@ -82,7 +82,7 @@ static BOOL parse_create_params( int argc, const WCHAR *argv[], struct create_pa
...
@@ -82,7 +82,7 @@ static BOOL parse_create_params( int argc, const WCHAR *argv[], struct create_pa
if
(
!
wcsicmp
(
argv
[
i
+
1
],
L"rec"
))
cp
->
type
=
SERVICE_RECOGNIZER_DRIVER
;
if
(
!
wcsicmp
(
argv
[
i
+
1
],
L"rec"
))
cp
->
type
=
SERVICE_RECOGNIZER_DRIVER
;
if
(
!
wcsicmp
(
argv
[
i
+
1
],
L"interact"
))
cp
->
type
|=
SERVICE_INTERACTIVE_PROCESS
;
if
(
!
wcsicmp
(
argv
[
i
+
1
],
L"interact"
))
cp
->
type
|=
SERVICE_INTERACTIVE_PROCESS
;
}
}
if
(
!
wcsicmp
(
argv
[
i
],
L"start="
L"start"
)
&&
i
<
argc
-
1
)
if
(
!
wcsicmp
(
argv
[
i
],
L"start="
)
&&
i
<
argc
-
1
)
{
{
if
(
!
wcsicmp
(
argv
[
i
+
1
],
L"boot"
))
cp
->
start
=
SERVICE_BOOT_START
;
if
(
!
wcsicmp
(
argv
[
i
+
1
],
L"boot"
))
cp
->
start
=
SERVICE_BOOT_START
;
if
(
!
wcsicmp
(
argv
[
i
+
1
],
L"system"
))
cp
->
start
=
SERVICE_SYSTEM_START
;
if
(
!
wcsicmp
(
argv
[
i
+
1
],
L"system"
))
cp
->
start
=
SERVICE_SYSTEM_START
;
...
@@ -134,7 +134,7 @@ static BOOL parse_failure_actions( const WCHAR *arg, SERVICE_FAILURE_ACTIONSW *f
...
@@ -134,7 +134,7 @@ static BOOL parse_failure_actions( const WCHAR *arg, SERVICE_FAILURE_ACTIONSW *f
{
{
if
(
!
wcsicmp
(
p
,
L"run"
))
fa
->
lpsaActions
[
i
].
Type
=
SC_ACTION_RUN_COMMAND
;
if
(
!
wcsicmp
(
p
,
L"run"
))
fa
->
lpsaActions
[
i
].
Type
=
SC_ACTION_RUN_COMMAND
;
else
if
(
!
wcsicmp
(
p
,
L"restart"
))
fa
->
lpsaActions
[
i
].
Type
=
SC_ACTION_RESTART
;
else
if
(
!
wcsicmp
(
p
,
L"restart"
))
fa
->
lpsaActions
[
i
].
Type
=
SC_ACTION_RESTART
;
else
if
(
!
wcsicmp
(
p
,
L"reboot
="L"reboot
"
))
fa
->
lpsaActions
[
i
].
Type
=
SC_ACTION_REBOOT
;
else
if
(
!
wcsicmp
(
p
,
L"reboot"
))
fa
->
lpsaActions
[
i
].
Type
=
SC_ACTION_REBOOT
;
else
fa
->
lpsaActions
[
i
].
Type
=
SC_ACTION_NONE
;
else
fa
->
lpsaActions
[
i
].
Type
=
SC_ACTION_NONE
;
p
+=
lstrlenW
(
p
)
+
1
;
p
+=
lstrlenW
(
p
)
+
1
;
...
@@ -159,7 +159,7 @@ static BOOL parse_failure_params( int argc, const WCHAR *argv[], SERVICE_FAILURE
...
@@ -159,7 +159,7 @@ static BOOL parse_failure_params( int argc, const WCHAR *argv[], SERVICE_FAILURE
for
(
i
=
0
;
i
<
argc
;
i
++
)
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
{
if
(
!
wcsicmp
(
argv
[
i
],
L"reset="
)
&&
i
<
argc
-
1
)
fa
->
dwResetPeriod
=
wcstol
(
argv
[
i
+
1
],
NULL
,
10
);
if
(
!
wcsicmp
(
argv
[
i
],
L"reset="
)
&&
i
<
argc
-
1
)
fa
->
dwResetPeriod
=
wcstol
(
argv
[
i
+
1
],
NULL
,
10
);
if
(
!
wcsicmp
(
argv
[
i
],
L"reboot="
L"reboot"
)
&&
i
<
argc
-
1
)
fa
->
lpRebootMsg
=
(
WCHAR
*
)
argv
[
i
+
1
];
if
(
!
wcsicmp
(
argv
[
i
],
L"reboot="
)
&&
i
<
argc
-
1
)
fa
->
lpRebootMsg
=
(
WCHAR
*
)
argv
[
i
+
1
];
if
(
!
wcsicmp
(
argv
[
i
],
L"command="
)
&&
i
<
argc
-
1
)
fa
->
lpCommand
=
(
WCHAR
*
)
argv
[
i
+
1
];
if
(
!
wcsicmp
(
argv
[
i
],
L"command="
)
&&
i
<
argc
-
1
)
fa
->
lpCommand
=
(
WCHAR
*
)
argv
[
i
+
1
];
if
(
!
wcsicmp
(
argv
[
i
],
L"actions="
))
if
(
!
wcsicmp
(
argv
[
i
],
L"actions="
))
{
{
...
@@ -264,7 +264,7 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
...
@@ -264,7 +264,7 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
}
}
else
WINE_TRACE
(
"failed to open service %u
\n
"
,
GetLastError
());
else
WINE_TRACE
(
"failed to open service %u
\n
"
,
GetLastError
());
}
}
else
if
(
!
wcsicmp
(
argv
[
1
],
L"start
="L"start
"
))
else
if
(
!
wcsicmp
(
argv
[
1
],
L"start"
))
{
{
service
=
OpenServiceW
(
manager
,
argv
[
2
],
SERVICE_START
);
service
=
OpenServiceW
(
manager
,
argv
[
2
],
SERVICE_START
);
if
(
service
)
if
(
service
)
...
...
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