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
84cf9caa
Commit
84cf9caa
authored
Feb 25, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Ignore errors when registering the service.
parent
e5bef99f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
qmgr_main.c
dlls/qmgr/qmgr_main.c
+5
-8
No files found.
dlls/qmgr/qmgr_main.c
View file @
84cf9caa
...
...
@@ -113,7 +113,6 @@ static HRESULT register_service(BOOL do_register)
static
const
WCHAR
path
[]
=
{
's'
,
'v'
,
'c'
,
'h'
,
'o'
,
's'
,
't'
,
'.'
,
'e'
,
'x'
,
'e'
,
' '
,
'-'
,
'k'
,
' '
,
'n'
,
'e'
,
't'
,
's'
,
'v'
,
'c'
,
's'
,
0
};
SC_HANDLE
scm
,
service
;
HRESULT
hr
=
S_OK
;
scm
=
OpenSCManagerW
(
NULL
,
NULL
,
SC_MANAGER_ALL_ACCESS
);
if
(
!
scm
)
...
...
@@ -129,14 +128,12 @@ static HRESULT register_service(BOOL do_register)
CloseServiceHandle
(
scm
);
if
(
!
service
)
return
SELFREG_E_CLASS
;
if
(
!
do_register
)
hr
=
DeleteService
(
service
)
?
S_OK
:
SELFREG_E_CLASS
;
if
(
service
)
{
if
(
!
do_register
)
DeleteService
(
service
);
CloseServiceHandle
(
service
);
return
hr
;
}
return
S_OK
;
}
/* Use an INF file to register or unregister the DLL */
...
...
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