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
569ea392
Commit
569ea392
authored
Jul 03, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jul 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Handle remote calls to MsiGetLanguage.
parent
82b0066f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
install.c
dlls/msi/install.c
+15
-0
msiserver.idl
dlls/msi/msiserver.idl
+2
-0
package.c
dlls/msi/package.c
+8
-0
No files found.
dlls/msi/install.c
View file @
569ea392
...
...
@@ -1045,8 +1045,23 @@ LANGID WINAPI MsiGetLanguage(MSIHANDLE hInstall)
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
{
HRESULT
hr
;
LANGID
lang
;
IWineMsiRemotePackage
*
remote_package
;
remote_package
=
(
IWineMsiRemotePackage
*
)
msi_get_remote
(
hInstall
);
if
(
!
remote_package
)
return
ERROR_INVALID_HANDLE
;
hr
=
IWineMsiRemotePackage_GetLanguage
(
remote_package
,
&
lang
);
if
(
SUCCEEDED
(
hr
))
return
lang
;
return
0
;
}
langid
=
msi_get_property_int
(
package
,
szProductLanguage
,
0
);
msiobj_release
(
&
package
->
hdr
);
return
langid
;
...
...
dlls/msi/msiserver.idl
View file @
569ea392
...
...
@@ -28,6 +28,7 @@ typedef unsigned long MSIHANDLE;
typedef
int
INSTALLMESSAGE
;
typedef
int
MSIRUNMODE
;
typedef
int
INSTALLSTATE
;
typedef
WORD
LANGID
;
cpp_quote
(
"#endif"
)
[
...
...
@@ -52,6 +53,7 @@ interface IWineMsiRemotePackage : IUnknown
HRESULT
SetFeatureState
(
[
in
]
BSTR
*
feature
,
[
in
]
INSTALLSTATE
state
)
;
HRESULT
GetComponentState
(
[
in
]
BSTR
*
component
,
[
out
]
INSTALLSTATE
*
installed
,
[
out
]
INSTALLSTATE
*
action
)
;
HRESULT
SetComponentState
(
[
in
]
BSTR
*
component
,
[
in
]
INSTALLSTATE
state
)
;
HRESULT
GetLanguage
(
[
out
]
LANGID
*
language
)
;
}
[
...
...
dlls/msi/package.c
View file @
569ea392
...
...
@@ -1648,6 +1648,13 @@ HRESULT WINAPI mrp_SetComponentState( IWineMsiRemotePackage *iface, BSTR *compon
return
HRESULT_FROM_WIN32
(
r
);
}
HRESULT
WINAPI
mrp_GetLanguage
(
IWineMsiRemotePackage
*
iface
,
LANGID
*
language
)
{
msi_remote_package_impl
*
This
=
mrp_from_IWineMsiRemotePackage
(
iface
);
*
language
=
MsiGetLanguage
(
This
->
package
);
return
S_OK
;
}
static
const
IWineMsiRemotePackageVtbl
msi_remote_package_vtbl
=
{
mrp_QueryInterface
,
...
...
@@ -1668,6 +1675,7 @@ static const IWineMsiRemotePackageVtbl msi_remote_package_vtbl =
mrp_SetFeatureState
,
mrp_GetComponentState
,
mrp_SetComponentState
,
mrp_GetLanguage
,
};
HRESULT
create_msi_remote_package
(
IUnknown
*
pOuter
,
LPVOID
*
ppObj
)
...
...
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