Daniel Jelinski : msi: Update LastSequence for empty media as well.
Alexandre Julliard
julliard at winehq.org
Mon Jun 10 15:12:43 CDT 2013
Module: wine
Branch: master
Commit: a2307a3339ddc630cfc249bc34b834aec8334f1f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a2307a3339ddc630cfc249bc34b834aec8334f1f
Author: Daniel Jelinski <djelinski1 at gmail.com>
Date: Sat Jun 8 22:22:19 2013 +0200
msi: Update LastSequence for empty media as well.
---
dlls/msi/patch.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/patch.c b/dlls/msi/patch.c
index d97ab2e..d7eef7c 100644
--- a/dlls/msi/patch.c
+++ b/dlls/msi/patch.c
@@ -551,7 +551,6 @@ static UINT set_patch_offsets( MSIDATABASE *db )
pos = patch_offset_list_create();
patch_offset_get_files( db, last_sequence, pos );
patch_offset_get_patches( db, last_sequence, pos );
- if (pos->count)
{
UINT offset = db->media_transform_offset - pos->min;
last_sequence = offset + pos->max;
@@ -559,7 +558,8 @@ static UINT set_patch_offsets( MSIDATABASE *db )
/* FIXME: this is for the patch table, which is not yet properly transformed */
last_sequence += pos->min;
pos->offset_to_apply = offset;
- patch_offset_modify_db( db, pos );
+ if (pos->count)
+ patch_offset_modify_db( db, pos );
MSI_RecordSetInteger( rec, 2, last_sequence );
r = MSI_ViewModify( view, MSIMODIFY_UPDATE, rec );
More information about the wine-cvs
mailing list