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
125f3151
Commit
125f3151
authored
Jul 16, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Don't call CloseServiceHandle() with an invalid handle.
parent
3e7f0e68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
service.c
dlls/wbemprox/service.c
+4
-4
No files found.
dlls/wbemprox/service.c
View file @
125f3151
...
...
@@ -69,11 +69,11 @@ static HRESULT control_service( const WCHAR *name, DWORD control, VARIANT *retva
goto
done
;
}
if
(
!
ControlService
(
service
,
control
,
&
status
))
error
=
map_error
(
GetLastError
()
);
CloseServiceHandle
(
service
);
done:
set_variant
(
VT_UI4
,
error
,
NULL
,
retval
);
CloseServiceHandle
(
service
);
CloseServiceHandle
(
manager
);
if
(
manager
)
CloseServiceHandle
(
manager
);
return
S_OK
;
}
...
...
@@ -183,11 +183,11 @@ static HRESULT start_service( const WCHAR *name, VARIANT *retval )
goto
done
;
}
if
(
!
StartServiceW
(
service
,
0
,
NULL
))
error
=
map_error
(
GetLastError
()
);
CloseServiceHandle
(
service
);
done:
set_variant
(
VT_UI4
,
error
,
NULL
,
retval
);
CloseServiceHandle
(
service
);
CloseServiceHandle
(
manager
);
if
(
manager
)
CloseServiceHandle
(
manager
);
return
S_OK
;
}
...
...
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