Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
c96f1d52
Commit
c96f1d52
authored
17 years ago
by
James Hawkins
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
msi: Handle remote calls to MsiGetMode.
parent
f935e94a
No related branches found
Branches containing commit
Tags
wine-950727
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/msi/install.c
+16
-0
16 additions, 0 deletions
dlls/msi/install.c
dlls/msi/msiserver.idl
+2
-0
2 additions, 0 deletions
dlls/msi/msiserver.idl
dlls/msi/package.c
+8
-0
8 additions, 0 deletions
dlls/msi/package.c
with
26 additions
and
0 deletions
dlls/msi/install.c
+
16
−
0
View file @
c96f1d52
...
...
@@ -612,7 +612,23 @@ BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode)
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
{
BOOL
ret
;
HRESULT
hr
;
IWineMsiRemotePackage
*
remote_package
;
remote_package
=
(
IWineMsiRemotePackage
*
)
msi_get_remote
(
hInstall
);
if
(
!
remote_package
)
return
FALSE
;
hr
=
IWineMsiRemotePackage_GetMode
(
remote_package
,
iRunMode
,
&
ret
);
IWineMsiRemotePackage_Release
(
remote_package
);
if
(
hr
==
S_OK
)
return
ret
;
return
FALSE
;
}
switch
(
iRunMode
)
{
...
...
This diff is collapsed.
Click to expand it.
dlls/msi/msiserver.idl
+
2
−
0
View file @
c96f1d52
...
...
@@ -26,6 +26,7 @@ import "oaidl.idl";
cpp_quote
(
"#if 0"
)
typedef
unsigned
long
MSIHANDLE
;
typedef
int
INSTALLMESSAGE
;
typedef
int
MSIRUNMODE
;
cpp_quote
(
"#endif"
)
[
...
...
@@ -45,6 +46,7 @@ interface IWineMsiRemotePackage : IUnknown
HRESULT
GetTargetPath
(
[
in
]
BSTR
*
folder
,
[
out
]
BSTR
*
value
,
[
out
]
DWORD
*
size
)
;
HRESULT
SetTargetPath
(
[
in
]
BSTR
*
folder
,
[
in
]
BSTR
*
value
)
;
HRESULT
GetSourcePath
(
[
in
]
BSTR
*
folder
,
[
out
]
BSTR
*
value
,
[
out
]
DWORD
*
size
)
;
HRESULT
GetMode
(
[
in
]
MSIRUNMODE
mode
,
[
out
]
BOOL
*
ret
)
;
}
[
...
...
This diff is collapsed.
Click to expand it.
dlls/msi/package.c
+
8
−
0
View file @
c96f1d52
...
...
@@ -1611,6 +1611,13 @@ HRESULT WINAPI mrp_GetSourcePath( IWineMsiRemotePackage *iface, BSTR *folder, BS
return
HRESULT_FROM_WIN32
(
r
);
}
HRESULT
WINAPI
mrp_GetMode
(
IWineMsiRemotePackage
*
iface
,
MSIRUNMODE
mode
,
BOOL
*
ret
)
{
msi_remote_package_impl
*
This
=
mrp_from_IWineMsiRemotePackage
(
iface
);
*
ret
=
MsiGetMode
(
This
->
package
,
mode
);
return
S_OK
;
}
static
const
IWineMsiRemotePackageVtbl
msi_remote_package_vtbl
=
{
mrp_QueryInterface
,
...
...
@@ -1626,6 +1633,7 @@ static const IWineMsiRemotePackageVtbl msi_remote_package_vtbl =
mrp_GetTargetPath
,
mrp_SetTargetPath
,
mrp_GetSourcePath
,
mrp_GetMode
,
};
HRESULT
create_msi_remote_package
(
IUnknown
*
pOuter
,
LPVOID
*
ppObj
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment