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
23169289
Commit
23169289
authored
Dec 06, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Map neutral parts of package language ids to the system default language id.
parent
8ad7d2e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
package.c
dlls/msi/package.c
+11
-1
install.c
dlls/msi/tests/install.c
+17
-0
No files found.
dlls/msi/package.c
View file @
23169289
...
...
@@ -1402,7 +1402,17 @@ static UINT validate_package( MSIPACKAGE *package )
}
for
(
i
=
0
;
i
<
package
->
num_langids
;
i
++
)
{
if
(
!
package
->
langids
[
i
]
||
IsValidLocale
(
package
->
langids
[
i
],
LCID_INSTALLED
))
LANGID
langid
=
package
->
langids
[
i
];
if
(
PRIMARYLANGID
(
langid
)
==
LANG_NEUTRAL
)
{
langid
=
MAKELANGID
(
PRIMARYLANGID
(
GetSystemDefaultLangID
()
),
SUBLANGID
(
langid
)
);
}
if
(
SUBLANGID
(
langid
)
==
SUBLANG_NEUTRAL
)
{
langid
=
MAKELANGID
(
PRIMARYLANGID
(
langid
),
SUBLANGID
(
GetSystemDefaultLangID
()
)
);
}
if
(
IsValidLocale
(
langid
,
LCID_INSTALLED
))
return
ERROR_SUCCESS
;
}
return
ERROR_INSTALL_LANGUAGE_UNSUPPORTED
;
...
...
dlls/msi/tests/install.c
View file @
23169289
...
...
@@ -6057,6 +6057,23 @@ static void test_package_validation(void)
ok
(
!
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"file exists
\n
"
);
ok
(
!
delete_pf
(
"msitest"
,
FALSE
),
"directory exists
\n
"
);
if
(
GetSystemDefaultLangID
()
==
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
))
{
DeleteFile
(
msifile
);
create_database_template
(
msifile
,
pv_tables
,
sizeof
(
pv_tables
)
/
sizeof
(
msi_table
),
100
,
"Intel;9"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"file does not exist
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"directory does not exist
\n
"
);
DeleteFile
(
msifile
);
create_database_template
(
msifile
,
pv_tables
,
sizeof
(
pv_tables
)
/
sizeof
(
msi_table
),
100
,
"Intel;1024"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"file does not exist
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"directory does not exist
\n
"
);
}
DeleteFile
(
msifile
);
create_database_template
(
msifile
,
pv_tables
,
sizeof
(
pv_tables
)
/
sizeof
(
msi_table
),
100
,
"Intel32;0"
);
...
...
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