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
9c892430
Commit
9c892430
authored
Apr 19, 2010
by
Octavian Voicu
Committed by
Alexandre Julliard
Apr 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix crash when calling MsiGetActiveDatabase with invalid remote handle.
parent
1b4bacea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
package.c
dlls/msi/package.c
+13
-3
No files found.
dlls/msi/package.c
View file @
9c892430
...
...
@@ -1357,6 +1357,7 @@ MSIHANDLE WINAPI MsiGetActiveDatabase(MSIHANDLE hInstall)
{
MSIPACKAGE
*
package
;
MSIHANDLE
handle
=
0
;
IUnknown
*
remote_unk
;
IWineMsiRemotePackage
*
remote_package
;
TRACE
(
"(%d)
\n
"
,
hInstall
);
...
...
@@ -1367,10 +1368,19 @@ MSIHANDLE WINAPI MsiGetActiveDatabase(MSIHANDLE hInstall)
handle
=
alloc_msihandle
(
&
package
->
db
->
hdr
);
msiobj_release
(
&
package
->
hdr
);
}
else
if
((
remote_
package
=
(
IWineMsiRemotePackage
*
)
msi_get_remote
(
hInstall
)))
else
if
((
remote_
unk
=
msi_get_remote
(
hInstall
)))
{
IWineMsiRemotePackage_GetActiveDatabase
(
remote_package
,
&
handle
);
IWineMsiRemotePackage_Release
(
remote_package
);
if
(
IUnknown_QueryInterface
(
remote_unk
,
&
IID_IWineMsiRemotePackage
,
(
LPVOID
*
)
&
remote_package
)
==
S_OK
)
{
IWineMsiRemotePackage_GetActiveDatabase
(
remote_package
,
&
handle
);
IWineMsiRemotePackage_Release
(
remote_package
);
}
else
{
WARN
(
"remote handle %d is not a package
\n
"
,
hInstall
);
}
IUnknown_Release
(
remote_unk
);
}
return
handle
;
...
...
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