Alexandre Julliard : cabarc: Set the initial cabinet number to 0.
Alexandre Julliard
julliard at winehq.org
Mon Feb 21 10:56:57 CST 2011
Module: wine
Branch: master
Commit: 55013410f75c221cb8efde05ce82d735a2f0fa35
URL: http://source.winehq.org/git/wine.git/?a=commit;h=55013410f75c221cb8efde05ce82d735a2f0fa35
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sat Feb 19 13:06:20 2011 +0100
cabarc: Set the initial cabinet number to 0.
---
programs/cabarc/cabarc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/cabarc/cabarc.c b/programs/cabarc/cabarc.c
index 2d1de8a..a11ebfb 100644
--- a/programs/cabarc/cabarc.c
+++ b/programs/cabarc/cabarc.c
@@ -244,7 +244,7 @@ static BOOL CDECL fci_get_temp( char *name, int size, void *ptr )
static BOOL CDECL fci_get_next_cab( CCAB *cab, ULONG prev_size, void *ptr )
{
- return format_cab_name( cab->szCab, cab->iCab, opt_cab_file );
+ return format_cab_name( cab->szCab, cab->iCab + 1, opt_cab_file );
}
static LONG CDECL fci_status( UINT type, ULONG cb1, ULONG cb2, void *ptr )
@@ -561,7 +561,7 @@ static int new_cabinet( char *cab_dir )
cab.cbReserveCFHeader = opt_reserve_space;
cab.cbReserveCFFolder = 0;
cab.cbReserveCFData = 0;
- cab.iCab = 1;
+ cab.iCab = 0;
cab.iDisk = 0;
cab.setID = opt_cabinet_id;
cab.szDisk[0] = 0;
More information about the wine-cvs
mailing list