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
62dc9ca6
Commit
62dc9ca6
authored
Oct 27, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Oct 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Extract cabinets based on DiskId, not LastSequence.
parent
005c0a79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
files.c
dlls/msi/files.c
+6
-1
install.c
dlls/msi/tests/install.c
+8
-8
No files found.
dlls/msi/files.c
View file @
62dc9ca6
...
...
@@ -458,7 +458,7 @@ static UINT ready_media_for_file( MSIPACKAGE *package, struct media_info *mi,
'`'
,
'M'
,
'e'
,
'd'
,
'i'
,
'a'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'L'
,
'a'
,
's'
,
't'
,
'S'
,
'e'
,
'q'
,
'u'
,
'e'
,
'n'
,
'c'
,
'e'
,
'`'
,
' '
,
'>'
,
'='
,
' '
,
'%'
,
'i'
,
' '
,
'O'
,
'R'
,
'D'
,
'E'
,
'R'
,
' '
,
'B'
,
'Y'
,
' '
,
'`'
,
'
L'
,
'a'
,
's'
,
't'
,
'S'
,
'e'
,
'q'
,
'u'
,
'e'
,
'n'
,
'c'
,
'e
'
,
'`'
,
0
};
'`'
,
'
D'
,
'i'
,
's'
,
'k'
,
'I'
,
'd
'
,
'`'
,
0
};
LPCWSTR
cab
,
volume
;
DWORD
sz
;
INT
seq
;
...
...
@@ -700,8 +700,13 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package)
if
(
file
->
IsCompressed
)
{
if
(
INVALID_FILE_ATTRIBUTES
==
GetFileAttributesW
(
file
->
TargetPath
))
{
ERR
(
"compressed file wasn't extracted (%s)
\n
"
,
debugstr_w
(
file
->
TargetPath
));
rc
=
ERROR_INSTALL_FAILURE
;
break
;
}
continue
;
}
...
...
dlls/msi/tests/install.c
View file @
62dc9ca6
...
...
@@ -839,13 +839,13 @@ static void test_caborder(void)
create_cab_file
(
"test2.cab"
,
MEDIA_SIZE
,
"augustus
\0
"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_INSTALL_FAILURE
,
"Expected ERROR_INSTALL_FAILURE, got %u
\n
"
,
r
);
ok
(
!
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File is installed
\n
"
);
todo_wine
{
ok
(
r
==
ERROR_INSTALL_FAILURE
,
"Expected ERROR_INSTALL_FAILURE, got %u
\n
"
,
r
);
ok
(
!
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest"
,
FALSE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest"
,
FALSE
),
"File is installed
\n
"
);
}
ok
(
!
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File is installed
\n
"
);
DeleteFile
(
"test1.cab"
);
DeleteFile
(
"test2.cab"
);
...
...
@@ -854,12 +854,12 @@ static void test_caborder(void)
create_cab_file
(
"test2.cab"
,
MEDIA_SIZE
,
"maximus
\0
augustus
\0
"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_INSTALL_FAILURE
,
"Expected ERROR_INSTALL_FAILURE, got %u
\n
"
,
r
);
ok
(
!
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File is installed
\n
"
);
todo_wine
{
ok
(
r
==
ERROR_INSTALL_FAILURE
,
"Expected ERROR_INSTALL_FAILURE, got %u
\n
"
,
r
);
ok
(
!
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest"
,
FALSE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest"
,
FALSE
),
"File is installed
\n
"
);
}
DeleteFile
(
"test1.cab"
);
...
...
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