From 540be1e374479694a6d8a7816cf3247a46b32f34 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 28 Oct 2009 14:57:47 -0700 Subject: Fixing endianess issue. --- lib/cdutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3