fix dc42 errors

git-svn-id: https://profuse.googlecode.com/svn/branches/v2@367 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
ksherlock 2011-02-28 04:44:56 +00:00
parent 5930e28f54
commit 3a671f985c
1 changed files with 3 additions and 3 deletions

View File

@ -32,8 +32,8 @@ DiskCopy42Image::DiskCopy42Image(MappedFile *f) :
DiskImage(f),
_changed(false)
{
setAdaptor(new POAdaptor(oUserData + (uint8_t *)f->address()));
setBlocks(Read32(f->address(), oDataSize) / 512);
setAdaptor(new POAdaptor(oUserData + (uint8_t *)address()));
setBlocks(Read32(address(), oDataSize) / 512);
}
@ -187,7 +187,7 @@ void DiskCopy42Image::Validate(MappedFile *file)
// name must be < 64
if (Read8(data, 0) > 63) break;
if (Read32(data, oPrivate) != 0x100)
if (Read16(data, oPrivate) != 0x100)
break;
// bytes, not blocks.