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
4cc569cc
Commit
4cc569cc
authored
Feb 12, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Feb 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Read the language info from the file.
parent
1f3d6a97
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
msi.c
dlls/msi/msi.c
+14
-4
No files found.
dlls/msi/msi.c
View file @
4cc569cc
...
...
@@ -1622,11 +1622,15 @@ UINT WINAPI MsiGetFileVersionW(LPCWSTR szFilePath, LPWSTR lpVersionBuf,
static
const
WCHAR
szVersionResource
[]
=
{
'\\'
,
0
};
static
const
WCHAR
szVersionFormat
[]
=
{
'%'
,
'd'
,
'.'
,
'%'
,
'd'
,
'.'
,
'%'
,
'd'
,
'.'
,
'%'
,
'd'
,
0
};
static
const
WCHAR
szLangResource
[]
=
{
'\\'
,
'V'
,
'a'
,
'r'
,
'F'
,
'i'
,
'l'
,
'e'
,
'I'
,
'n'
,
'f'
,
'o'
,
'\\'
,
'T'
,
'r'
,
'a'
,
'n'
,
's'
,
'l'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
szLangFormat
[]
=
{
'%'
,
'd'
,
0
};
UINT
ret
=
0
;
DWORD
dwVerLen
,
gle
;
LPVOID
lpVer
=
NULL
;
VS_FIXEDFILEINFO
*
ffi
;
USHORT
*
lang
;
UINT
puLen
;
WCHAR
tmp
[
32
];
...
...
@@ -1687,10 +1691,10 @@ UINT WINAPI MsiGetFileVersionW(LPCWSTR szFilePath, LPWSTR lpVersionBuf,
if
(
pcchLangBuf
)
{
DWORD
lang
=
GetUserDefaultLangID
();
FIXME
(
"Retrieve language from file
\n
"
);
wsprintfW
(
tmp
,
szLangFormat
,
lang
);
if
(
VerQueryValueW
(
lpVer
,
szLangResource
,
(
LPVOID
*
)
&
lang
,
&
puLen
)
&&
(
puLen
>
0
))
{
wsprintfW
(
tmp
,
szLangFormat
,
*
lang
);
if
(
lpLangBuf
)
lstrcpynW
(
lpLangBuf
,
tmp
,
*
pcchLangBuf
);
if
(
lstrlenW
(
tmp
)
>=
*
pcchLangBuf
)
...
...
@@ -1698,6 +1702,12 @@ UINT WINAPI MsiGetFileVersionW(LPCWSTR szFilePath, LPWSTR lpVersionBuf,
*
pcchLangBuf
=
lstrlenW
(
tmp
);
}
else
{
if
(
lpLangBuf
)
*
lpLangBuf
=
0
;
*
pcchLangBuf
=
0
;
}
}
end:
msi_free
(
lpVer
);
...
...
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