diff options
author | Pixel <pixel@nobis-crew.org> | 2009-10-28 14:57:47 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-10-28 14:57:47 -0700 |
commit | 540be1e374479694a6d8a7816cf3247a46b32f34 (patch) | |
tree | 9f55b0a98ef525719b6b92960aa3351dd866af29 /lib | |
parent | c04d2f748cf851642d1b8c54a93522e7d42d204e (diff) |
Fixing endianess issue.
Diffstat (limited to 'lib')
-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); } |