@@ -204,7 +204,7 @@ size_t Archive::ReadHeader15()
204
204
if (ShortBlock.HeaderType ==HEAD_MAIN && (ShortBlock.Flags & MHD_COMMENT)!=0 )
205
205
{
206
206
// Old style (up to RAR 2.9) main archive comment embedded into
207
- // the main archive header found. While we can read the entire
207
+ // the main archive header found. While we can read the entire
208
208
// ShortBlock.HeadSize here and remove this part of "if", it would be
209
209
// waste of memory, because we'll read and process this comment data
210
210
// in other function anyway and we do not need them here now.
@@ -230,7 +230,7 @@ size_t Archive::ReadHeader15()
230
230
Encrypted=(MainHead.Flags & MHD_PASSWORD)!=0 ;
231
231
Signed=MainHead.PosAV !=0 || MainHead.HighPosAV !=0 ;
232
232
MainHead.CommentInHeader =(MainHead.Flags & MHD_COMMENT)!=0 ;
233
-
233
+
234
234
// Only for encrypted 3.0+ archives. 2.x archives did not have this
235
235
// flag, so for non-encrypted archives, we'll set it later based on
236
236
// file attributes.
@@ -257,7 +257,7 @@ size_t Archive::ReadHeader15()
257
257
hd->WinSize =hd->Dir ? 0 :0x10000 <<((hd->Flags & LHD_WINDOWMASK)>>5 );
258
258
hd->CommentInHeader =(hd->Flags & LHD_COMMENT)!=0 ;
259
259
hd->Version =(hd->Flags & LHD_VERSION)!=0 ;
260
-
260
+
261
261
hd->DataSize =Raw.Get4 ();
262
262
uint LowUnpSize=Raw.Get4 ();
263
263
hd->HostOS =Raw.Get1 ();
@@ -282,7 +282,7 @@ size_t Archive::ReadHeader15()
282
282
{
283
283
case 13 : hd->CryptMethod =CRYPT_RAR13; break ;
284
284
case 15 : hd->CryptMethod =CRYPT_RAR15; break ;
285
- case 20 :
285
+ case 20 :
286
286
case 26 : hd->CryptMethod =CRYPT_RAR20; break ;
287
287
default : hd->CryptMethod =CRYPT_RAR30; break ;
288
288
}
@@ -304,7 +304,7 @@ size_t Archive::ReadHeader15()
304
304
}
305
305
306
306
hd->Inherited =!FileBlock && (hd->SubFlags & SUBHEAD_FLAGS_INHERITED)!=0 ;
307
-
307
+
308
308
hd->LargeFile =(hd->Flags & LHD_LARGE)!=0 ;
309
309
310
310
uint HighPackSize,HighUnpSize;
@@ -314,7 +314,7 @@ size_t Archive::ReadHeader15()
314
314
HighUnpSize=Raw.Get4 ();
315
315
hd->UnknownUnpSize =(LowUnpSize==0xffffffff && HighUnpSize==0xffffffff );
316
316
}
317
- else
317
+ else
318
318
{
319
319
HighPackSize=HighUnpSize=0 ;
320
320
// UnpSize equal to 0xffffffff without LHD_LARGE flag indicates
@@ -509,7 +509,7 @@ size_t Archive::ReadHeader15()
509
509
NextBlockPos+=Raw.Get4 ();
510
510
break ;
511
511
}
512
-
512
+
513
513
ushort HeaderCRC=Raw.GetCRC15 (false );
514
514
515
515
// Old AV header does not have header CRC properly set.
@@ -644,7 +644,7 @@ size_t Archive::ReadHeader50()
644
644
BrokenHeaderMsg ();
645
645
return 0 ;
646
646
}
647
-
647
+
648
648
Raw.Read (SizeToRead);
649
649
650
650
if (Raw.Size ()<HeaderSize)
@@ -677,7 +677,7 @@ size_t Archive::ReadHeader50()
677
677
return 0 ;
678
678
}
679
679
}
680
-
680
+
681
681
uint64 ExtraSize=0 ;
682
682
if ((ShortBlock.Flags & HFL_EXTRA)!=0 )
683
683
{
@@ -770,7 +770,7 @@ size_t Archive::ReadHeader50()
770
770
// to not break normal archive processing by calling function.
771
771
int64 SaveCurBlockPos=CurBlockPos,SaveNextBlockPos=NextBlockPos;
772
772
HEADER_TYPE SaveCurHeaderType=CurHeaderType;
773
-
773
+
774
774
QOpen.Init (this ,false );
775
775
QOpen.Load (MainHead.QOpenOffset );
776
776
@@ -795,7 +795,7 @@ size_t Archive::ReadHeader50()
795
795
hd->PackSize =DataSize;
796
796
hd->FileFlags =(uint )Raw.GetV ();
797
797
hd->UnpSize =Raw.GetV ();
798
-
798
+
799
799
hd->UnknownUnpSize =(hd->FileFlags & FHFL_UNPUNKNOWN)!=0 ;
800
800
if (hd->UnknownUnpSize )
801
801
hd->UnpSize =INT64NDF;
@@ -882,7 +882,7 @@ size_t Archive::ReadHeader50()
882
882
RecoverySize=Header.RecSectionSize*Header.RecCount;
883
883
}
884
884
#endif
885
-
885
+
886
886
if (BadCRC) // Add the file name to broken header message displayed above.
887
887
uiMsg (UIERROR_FHEADERBROKEN,Archive::FileName,hd->FileName );
888
888
}
@@ -1307,7 +1307,7 @@ void Archive::ConvertAttributes()
1307
1307
1308
1308
if (mask == (mode_t ) -1 )
1309
1309
{
1310
- // umask call returns the current umask value. Argument (022) is not
1310
+ // umask call returns the current umask value. Argument (022) is not
1311
1311
// really important here.
1312
1312
mask = umask (022 );
1313
1313
@@ -1384,8 +1384,8 @@ void Archive::ConvertFileHeader(FileHeader *hd)
1384
1384
1385
1385
// ':' in file names is allowed in Unix, but not in Windows.
1386
1386
// Even worse, file data will be written to NTFS stream on NTFS,
1387
- // so automatic name correction on file create error in extraction
1388
- // routine does not work. In Windows and DOS versions we better
1387
+ // so automatic name correction on file create error in extraction
1388
+ // routine does not work. In Windows and DOS versions we better
1389
1389
// replace ':' now.
1390
1390
if (*s==' :' )
1391
1391
*s=' _' ;
0 commit comments