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
baf86bd5
Commit
baf86bd5
authored
Mar 22, 2009
by
James Hawkins
Committed by
Alexandre Julliard
Mar 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: MsiCollectUserInfo cannot be called from a custom action (Coverity 565, 566).
parent
cb958cd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
msi.c
dlls/msi/msi.c
+8
-0
No files found.
dlls/msi/msi.c
View file @
baf86bd5
...
@@ -2927,7 +2927,11 @@ UINT WINAPI MsiCollectUserInfoW(LPCWSTR szProduct)
...
@@ -2927,7 +2927,11 @@ UINT WINAPI MsiCollectUserInfoW(LPCWSTR szProduct)
if
(
rc
!=
ERROR_SUCCESS
)
if
(
rc
!=
ERROR_SUCCESS
)
return
ERROR_INVALID_PARAMETER
;
return
ERROR_INVALID_PARAMETER
;
/* MsiCollectUserInfo cannot be called from a custom action. */
package
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_PACKAGE
);
package
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
return
ERROR_CALL_NOT_IMPLEMENTED
;
rc
=
ACTION_PerformUIAction
(
package
,
szFirstRun
,
-
1
);
rc
=
ACTION_PerformUIAction
(
package
,
szFirstRun
,
-
1
);
msiobj_release
(
&
package
->
hdr
);
msiobj_release
(
&
package
->
hdr
);
...
@@ -2949,7 +2953,11 @@ UINT WINAPI MsiCollectUserInfoA(LPCSTR szProduct)
...
@@ -2949,7 +2953,11 @@ UINT WINAPI MsiCollectUserInfoA(LPCSTR szProduct)
if
(
rc
!=
ERROR_SUCCESS
)
if
(
rc
!=
ERROR_SUCCESS
)
return
ERROR_INVALID_PARAMETER
;
return
ERROR_INVALID_PARAMETER
;
/* MsiCollectUserInfo cannot be called from a custom action. */
package
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_PACKAGE
);
package
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
return
ERROR_CALL_NOT_IMPLEMENTED
;
rc
=
ACTION_PerformUIAction
(
package
,
szFirstRun
,
-
1
);
rc
=
ACTION_PerformUIAction
(
package
,
szFirstRun
,
-
1
);
msiobj_release
(
&
package
->
hdr
);
msiobj_release
(
&
package
->
hdr
);
...
...
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