mirror of
https://github.com/ksherlock/profuse.git
synced 2025-03-10 10:32:38 +00:00
fix dc42 errors
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@367 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
parent
5930e28f54
commit
3a671f985c
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user