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
6ae70616
Commit
6ae70616
authored
Sep 15, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Improve parsing of the package platform.
parent
de77f064
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
package.c
dlls/msi/package.c
+5
-0
install.c
dlls/msi/tests/install.c
+38
-0
No files found.
dlls/msi/package.c
View file @
6ae70616
...
...
@@ -1280,6 +1280,7 @@ static UINT msi_parse_summary( MSISUMMARYINFO *si, MSIPACKAGE *package )
return
ERROR_PATCH_PACKAGE_INVALID
;
}
*
p
=
0
;
if
((
q
=
strchrW
(
template
,
','
)))
*
q
=
0
;
if
(
!
template
[
0
]
||
!
strcmpW
(
template
,
szIntel
))
package
->
platform
=
PLATFORM_INTEL
;
else
if
(
!
strcmpW
(
template
,
szIntel64
))
...
...
@@ -1329,6 +1330,10 @@ static UINT validate_package( MSIPACKAGE *package )
BOOL
is_wow64
;
UINT
i
;
if
(
package
->
platform
==
PLATFORM_INTEL64
)
{
return
ERROR_INSTALL_PLATFORM_UNSUPPORTED
;
}
IsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
);
if
(
package
->
platform
==
PLATFORM_X64
)
{
...
...
dlls/msi/tests/install.c
View file @
6ae70616
...
...
@@ -6111,6 +6111,44 @@ static void test_package_validation(void)
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"directory does not exist
\n
"
);
DeleteFile
(
msifile
);
create_database_template
(
msifile
,
pv_tables
,
sizeof
(
pv_tables
)
/
sizeof
(
msi_table
),
200
,
"Intel,9999;9999"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_INSTALL_LANGUAGE_UNSUPPORTED
,
"Expected ERROR_INSTALL_LANGUAGE_UNSUPPORTED, got %u
\n
"
,
r
);
DeleteFile
(
msifile
);
create_database_template
(
msifile
,
pv_tables
,
sizeof
(
pv_tables
)
/
sizeof
(
msi_table
),
200
,
"Intel,1033;9999"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_INSTALL_LANGUAGE_UNSUPPORTED
,
"Expected ERROR_INSTALL_LANGUAGE_UNSUPPORTED, got %u
\n
"
,
r
);
DeleteFile
(
msifile
);
create_database_template
(
msifile
,
pv_tables
,
sizeof
(
pv_tables
)
/
sizeof
(
msi_table
),
200
,
"Intel,9999;1033"
);
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
),
200
,
"Intel64,9999;1033"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_INSTALL_PLATFORM_UNSUPPORTED
,
"Expected ERROR_INSTALL_PLATFORM_UNSUPPORTED, got %u
\n
"
,
r
);
DeleteFile
(
msifile
);
create_database_template
(
msifile
,
pv_tables
,
sizeof
(
pv_tables
)
/
sizeof
(
msi_table
),
200
,
"Intel32,1033;1033"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_INSTALL_PLATFORM_UNSUPPORTED
,
"Expected ERROR_INSTALL_PLATFORM_UNSUPPORTED, got %u
\n
"
,
r
);
DeleteFile
(
msifile
);
create_database_template
(
msifile
,
pv_tables
,
sizeof
(
pv_tables
)
/
sizeof
(
msi_table
),
200
,
"Intel32,9999;1033"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_INSTALL_PLATFORM_UNSUPPORTED
,
"Expected ERROR_INSTALL_PLATFORM_UNSUPPORTED, got %u
\n
"
,
r
);
DeleteFile
(
msifile
);
create_database_template
(
msifile
,
pv_tables
,
sizeof
(
pv_tables
)
/
sizeof
(
msi_table
),
100
,
"Intel;9999"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
...
...
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