diff options
-rw-r--r-- | lib/cdutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp index 673ec8d..db302a7 100644 --- a/lib/cdutils.cpp +++ b/lib/cdutils.cpp @@ -909,7 +909,7 @@ struct cdutils::DirEntry * cdutils::find_parent(Byte ** bufout, const String & p return dir; } -cdfile::cdfile(cdutils * _cd, const cdutils::DirEntry * d, int _mode) : Handle(-1), cd(_cd), sector(d->Sector), mode(_mode), size(d->Size), name(d->id) { +cdfile::cdfile(cdutils * _cd, const cdutils::DirEntry * d, int _mode) : Handle(-1), cd(_cd), sector(cdutils::from_LE32(d->Sector)), mode(_mode), size(cdutils::from_LE32(d->Size)), name(d->id) { if (mode == GUESS) { mode = cd->guess_type(sector); } |