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
fed41f53
Commit
fed41f53
authored
Jul 16, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Don't call CloseServiceHandle() with an invalid handle.
parent
3e55f1d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
action.c
dlls/msi/action.c
+8
-8
No files found.
dlls/msi/action.c
View file @
fed41f53
...
...
@@ -5876,8 +5876,8 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
if
(
image_path
!=
file
->
TargetPath
)
msi_free
(
image_path
);
done:
CloseServiceHandle
(
service
);
CloseServiceHandle
(
hscm
);
if
(
service
)
CloseServiceHandle
(
service
);
if
(
hscm
)
CloseServiceHandle
(
hscm
);
msi_free
(
name
);
msi_free
(
disp
);
msi_free
(
sd
.
lpDescription
);
...
...
@@ -6051,8 +6051,8 @@ done:
msi_ui_actiondata
(
package
,
szStartServices
,
uirow
);
msiobj_release
(
&
uirow
->
hdr
);
CloseServiceHandle
(
service
);
CloseServiceHandle
(
scm
);
if
(
service
)
CloseServiceHandle
(
service
);
if
(
scm
)
CloseServiceHandle
(
scm
);
msi_free
(
name
);
msi_free
(
args
);
...
...
@@ -6161,8 +6161,8 @@ static UINT stop_service( LPCWSTR name )
WARN
(
"Failed to stop service (%s): %d
\n
"
,
debugstr_w
(
name
),
GetLastError
());
done:
CloseServiceHandle
(
service
);
CloseServiceHandle
(
scm
);
if
(
service
)
CloseServiceHandle
(
service
);
if
(
scm
)
CloseServiceHandle
(
scm
);
return
ERROR_SUCCESS
;
}
...
...
@@ -6299,8 +6299,8 @@ done:
msi_ui_actiondata
(
package
,
szDeleteServices
,
uirow
);
msiobj_release
(
&
uirow
->
hdr
);
CloseServiceHandle
(
service
);
CloseServiceHandle
(
scm
);
if
(
service
)
CloseServiceHandle
(
service
);
if
(
scm
)
CloseServiceHandle
(
scm
);
msi_free
(
name
);
msi_free
(
display_name
);
...
...
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