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
f935e94a
Commit
f935e94a
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 MsiSetTargetPath.
parent
582be6a7
No related branches found
Branches containing commit
No related tags found
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
+22
-1
22 additions, 1 deletion
dlls/msi/install.c
dlls/msi/msiserver.idl
+1
-0
1 addition, 0 deletions
dlls/msi/msiserver.idl
dlls/msi/package.c
+8
-0
8 additions, 0 deletions
dlls/msi/package.c
with
31 additions
and
1 deletion
dlls/msi/install.c
+
22
−
1
View file @
f935e94a
...
...
@@ -544,7 +544,28 @@ UINT WINAPI MsiSetTargetPathW(MSIHANDLE hInstall, LPCWSTR szFolder,
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
return
ERROR_INVALID_HANDLE
;
{
HRESULT
hr
;
IWineMsiRemotePackage
*
remote_package
;
remote_package
=
(
IWineMsiRemotePackage
*
)
msi_get_remote
(
hInstall
);
if
(
!
remote_package
)
return
ERROR_INVALID_HANDLE
;
hr
=
IWineMsiRemotePackage_SetTargetPath
(
remote_package
,
(
BSTR
*
)
szFolder
,
(
BSTR
*
)
szFolderPath
);
IWineMsiRemotePackage_Release
(
remote_package
);
if
(
FAILED
(
hr
))
{
if
(
HRESULT_FACILITY
(
hr
)
==
FACILITY_WIN32
)
return
HRESULT_CODE
(
hr
);
return
ERROR_FUNCTION_FAILED
;
}
return
ERROR_SUCCESS
;
}
ret
=
MSI_SetTargetPathW
(
package
,
szFolder
,
szFolderPath
);
msiobj_release
(
&
package
->
hdr
);
...
...
This diff is collapsed.
Click to expand it.
dlls/msi/msiserver.idl
+
1
−
0
View file @
f935e94a
...
...
@@ -43,6 +43,7 @@ interface IWineMsiRemotePackage : IUnknown
HRESULT
DoAction
(
[
in
]
BSTR
*
action
)
;
HRESULT
Sequence
(
[
in
]
BSTR
*
table
,
[
in
]
int
sequence
)
;
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
)
;
}
...
...
This diff is collapsed.
Click to expand it.
dlls/msi/package.c
+
8
−
0
View file @
f935e94a
...
...
@@ -1597,6 +1597,13 @@ HRESULT WINAPI mrp_GetTargetPath( IWineMsiRemotePackage *iface, BSTR *folder, BS
return
HRESULT_FROM_WIN32
(
r
);
}
HRESULT
WINAPI
mrp_SetTargetPath
(
IWineMsiRemotePackage
*
iface
,
BSTR
*
folder
,
BSTR
*
value
)
{
msi_remote_package_impl
*
This
=
mrp_from_IWineMsiRemotePackage
(
iface
);
UINT
r
=
MsiSetTargetPathW
(
This
->
package
,
(
LPWSTR
)
folder
,
(
LPWSTR
)
value
);
return
HRESULT_FROM_WIN32
(
r
);
}
HRESULT
WINAPI
mrp_GetSourcePath
(
IWineMsiRemotePackage
*
iface
,
BSTR
*
folder
,
BSTR
*
value
,
DWORD
*
size
)
{
msi_remote_package_impl
*
This
=
mrp_from_IWineMsiRemotePackage
(
iface
);
...
...
@@ -1617,6 +1624,7 @@ static const IWineMsiRemotePackageVtbl msi_remote_package_vtbl =
mrp_DoAction
,
mrp_Sequence
,
mrp_GetTargetPath
,
mrp_SetTargetPath
,
mrp_GetSourcePath
,
};
...
...
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