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
4c1791f5
Commit
4c1791f5
authored
Mar 04, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add offsets to file patch sequence numbers.
parent
12342894
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
action.c
dlls/msi/action.c
+4
-10
msipriv.h
dlls/msi/msipriv.h
+2
-0
patch.c
dlls/msi/patch.c
+0
-0
No files found.
dlls/msi/action.c
View file @
4c1791f5
...
...
@@ -1340,17 +1340,15 @@ static UINT load_patch(MSIRECORD *row, LPVOID param)
{
MSIPACKAGE
*
package
=
param
;
MSIFILEPATCH
*
patch
;
LPWSTR
file_key
;
const
WCHAR
*
file_key
;
patch
=
msi_alloc_zero
(
sizeof
(
MSIFILEPATCH
)
);
if
(
!
patch
)
return
ERROR_NOT_ENOUGH_MEMORY
;
file_key
=
msi_dup_record_field
(
row
,
1
);
file_key
=
MSI_RecordGetString
(
row
,
1
);
patch
->
File
=
msi_get_loaded_file
(
package
,
file_key
);
msi_free
(
file_key
);
if
(
!
patch
->
File
)
if
(
!
patch
->
File
)
{
ERR
(
"Failed to find target for patch in File table
\n
"
);
msi_free
(
patch
);
...
...
@@ -1358,10 +1356,6 @@ static UINT load_patch(MSIRECORD *row, LPVOID param)
}
patch
->
Sequence
=
MSI_RecordGetInteger
(
row
,
2
);
/* FIXME: The database should be properly transformed */
patch
->
Sequence
+=
MSI_INITIAL_MEDIA_TRANSFORM_OFFSET
;
patch
->
PatchSize
=
MSI_RecordGetInteger
(
row
,
3
);
patch
->
Attributes
=
MSI_RecordGetInteger
(
row
,
4
);
patch
->
IsApplied
=
FALSE
;
...
...
@@ -1371,7 +1365,7 @@ static UINT load_patch(MSIRECORD *row, LPVOID param)
* _StreamRef - External key into MsiPatchHeaders (instead of the header field)
*/
TRACE
(
"Patch
Loaded (%s)
\n
"
,
debugstr_w
(
patch
->
File
->
File
)
);
TRACE
(
"Patch
loaded (file %s sequence %u)
\n
"
,
debugstr_w
(
patch
->
File
->
File
),
patch
->
Sequence
);
list_add_tail
(
&
package
->
filepatches
,
&
patch
->
entry
);
...
...
dlls/msi/msipriv.h
View file @
4c1791f5
...
...
@@ -192,6 +192,8 @@ typedef struct tagMSIPATCHINFO
LPWSTR
localfile
;
MSIPATCHSTATE
state
;
BOOL
delete_on_close
;
UINT
disk_id
;
UINT
last_sequence
;
}
MSIPATCHINFO
;
typedef
struct
tagMSIBINARY
...
...
dlls/msi/patch.c
View file @
4c1791f5
This diff is collapsed.
Click to expand it.
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