File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
BinaryObjectScanner/FileType Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -389,14 +389,6 @@ private static int Mime2Utf(int x)
389
389
390
390
#region Directory Entries
391
391
392
- // Get the offset of the first directory sector
393
- long firstDirectoryOffset = ( long ) ( fileHeader . FirstDirectorySectorLocation * Math . Pow ( 2 , fileHeader . SectorShift ) ) ;
394
- if ( firstDirectoryOffset < 0 || firstDirectoryOffset >= data . Length )
395
- return null ;
396
-
397
- // Seek to the first directory sector
398
- data . Seek ( firstDirectoryOffset , SeekOrigin . Begin ) ;
399
-
400
392
// Create a directory sector table
401
393
var directorySectors = new List < DirectoryEntry > ( ) ;
402
394
@@ -440,9 +432,8 @@ private static int Mime2Utf(int x)
440
432
// Add the sector shifts
441
433
directorySectors . AddRange ( directoryEntries ) ;
442
434
443
- // Get the next sector from the DIFAT
444
- var fat = binary . DIFATSectorNumbers [ ( int ) currentSector ] ;
445
- currentSector = binary . FATSectorNumbers [ ( int ) fat ] ;
435
+ // Get the next sector from the FAT
436
+ currentSector = binary . FATSectorNumbers [ ( int ) currentSector ] ;
446
437
}
447
438
448
439
// Assign the Directory sectors table
You can’t perform that action at this time.
0 commit comments