From 55013410f75c221cb8efde05ce82d735a2f0fa35 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 19 Feb 2011 13:06:20 +0100 Subject: [PATCH] cabarc: Set the initial cabinet number to 0. --- programs/cabarc/cabarc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/cabarc/cabarc.c b/programs/cabarc/cabarc.c index 2d1de8a4e29..a11ebfb278f 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;