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
7c9cb1e1
Commit
7c9cb1e1
authored
Jan 28, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Name and arguments in the service control table are formatted strings.
parent
4d14ea47
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
action.c
dlls/msi/action.c
+5
-5
No files found.
dlls/msi/action.c
View file @
7c9cb1e1
...
...
@@ -4466,8 +4466,8 @@ static UINT ITERATE_StartService(MSIRECORD *rec, LPVOID param)
MSIPACKAGE
*
package
=
param
;
MSICOMPONENT
*
comp
;
SC_HANDLE
scm
,
service
=
NULL
;
LPCWSTR
name
,
*
vector
=
NULL
;
LPWSTR
args
;
LPCWSTR
*
vector
=
NULL
;
LPWSTR
name
,
args
;
DWORD
event
,
numargs
;
UINT
r
=
ERROR_FUNCTION_FAILED
;
...
...
@@ -4475,9 +4475,9 @@ static UINT ITERATE_StartService(MSIRECORD *rec, LPVOID param)
if
(
!
comp
||
comp
->
Action
==
INSTALLSTATE_UNKNOWN
||
comp
->
Action
==
INSTALLSTATE_ABSENT
)
return
ERROR_SUCCESS
;
name
=
MSI_RecordGetString
(
rec
,
2
);
deformat_string
(
package
,
MSI_RecordGetString
(
rec
,
2
),
&
name
);
deformat_string
(
package
,
MSI_RecordGetString
(
rec
,
4
),
&
args
);
event
=
MSI_RecordGetInteger
(
rec
,
3
);
args
=
strdupW
(
MSI_RecordGetString
(
rec
,
4
));
if
(
!
(
event
&
msidbServiceControlEventStart
))
return
ERROR_SUCCESS
;
...
...
@@ -4510,6 +4510,7 @@ done:
CloseServiceHandle
(
service
);
CloseServiceHandle
(
scm
);
msi_free
(
name
);
msi_free
(
args
);
msi_free
(
vector
);
return
r
;
...
...
@@ -4594,7 +4595,6 @@ static UINT ITERATE_StopService(MSIRECORD *rec, LPVOID param)
deformat_string
(
package
,
MSI_RecordGetString
(
rec
,
2
),
&
name
);
deformat_string
(
package
,
MSI_RecordGetString
(
rec
,
4
),
&
args
);
args
=
strdupW
(
MSI_RecordGetString
(
rec
,
4
));
scm
=
OpenSCManagerW
(
NULL
,
NULL
,
SC_MANAGER_ALL_ACCESS
);
if
(
!
scm
)
...
...
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