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
1447872b
Commit
1447872b
authored
Mar 18, 2022
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sc: Don't silently fail when something doesn't work as expected.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8b38c91d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
sc.c
programs/sc/sc.c
+9
-9
No files found.
programs/sc/sc.c
View file @
1447872b
...
...
@@ -207,7 +207,7 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
}
if
(
!
parse_create_params
(
argc
-
3
,
argv
+
3
,
&
cp
))
{
WINE_
WARN
(
"failed to parse create parameters
\n
"
);
WINE_
ERR
(
"failed to parse create parameters
\n
"
);
CloseServiceHandle
(
manager
);
return
1
;
}
...
...
@@ -219,7 +219,7 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
CloseServiceHandle
(
service
);
ret
=
TRUE
;
}
else
WINE_
TRACE
(
"failed to create service %lu
\n
"
,
GetLastError
());
else
WINE_
ERR
(
"failed to create service %lu
\n
"
,
GetLastError
());
}
else
if
(
!
wcsicmp
(
argv
[
1
],
L"description"
))
{
...
...
@@ -229,10 +229,10 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
SERVICE_DESCRIPTIONW
sd
;
sd
.
lpDescription
=
argc
>
3
?
(
WCHAR
*
)
argv
[
3
]
:
NULL
;
ret
=
ChangeServiceConfig2W
(
service
,
SERVICE_CONFIG_DESCRIPTION
,
&
sd
);
if
(
!
ret
)
WINE_
TRACE
(
"failed to set service description %lu
\n
"
,
GetLastError
());
if
(
!
ret
)
WINE_
ERR
(
"failed to set service description %lu
\n
"
,
GetLastError
());
CloseServiceHandle
(
service
);
}
else
WINE_
TRACE
(
"failed to open service %lu
\n
"
,
GetLastError
());
else
WINE_
ERR
(
"failed to open service %lu
\n
"
,
GetLastError
());
}
else
if
(
!
wcsicmp
(
argv
[
1
],
L"failure"
))
{
...
...
@@ -247,10 +247,10 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
HeapFree
(
GetProcessHeap
(),
0
,
sfa
.
lpsaActions
);
}
else
WINE_
WARN
(
"failed to parse failure parameters
\n
"
);
WINE_
ERR
(
"failed to parse failure parameters
\n
"
);
CloseServiceHandle
(
service
);
}
else
WINE_
TRACE
(
"failed to open service %lu
\n
"
,
GetLastError
());
else
WINE_
ERR
(
"failed to open service %lu
\n
"
,
GetLastError
());
}
else
if
(
!
wcsicmp
(
argv
[
1
],
L"delete"
))
{
...
...
@@ -261,7 +261,7 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
if
(
!
ret
)
WINE_TRACE
(
"failed to delete service %lu
\n
"
,
GetLastError
());
CloseServiceHandle
(
service
);
}
else
WINE_
TRACE
(
"failed to open service %lu
\n
"
,
GetLastError
());
else
WINE_
ERR
(
"failed to open service %lu
\n
"
,
GetLastError
());
}
else
if
(
!
wcsicmp
(
argv
[
1
],
L"start"
))
{
...
...
@@ -272,7 +272,7 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
if
(
!
ret
)
WINE_TRACE
(
"failed to start service %lu
\n
"
,
GetLastError
());
CloseServiceHandle
(
service
);
}
else
WINE_
TRACE
(
"failed to open service %lu
\n
"
,
GetLastError
());
else
WINE_
ERR
(
"failed to open service %lu
\n
"
,
GetLastError
());
}
else
if
(
!
wcsicmp
(
argv
[
1
],
L"stop"
))
{
...
...
@@ -283,7 +283,7 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
if
(
!
ret
)
WINE_TRACE
(
"failed to stop service %lu
\n
"
,
GetLastError
());
CloseServiceHandle
(
service
);
}
else
WINE_
TRACE
(
"failed to open service %lu
\n
"
,
GetLastError
());
else
WINE_
ERR
(
"failed to open service %lu
\n
"
,
GetLastError
());
}
else
if
(
!
wcsicmp
(
argv
[
1
],
L"sdset"
))
{
...
...
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