From 3a671f985c368b8097264ccaeb8d1c958170fbb1 Mon Sep 17 00:00:00 2001 From: ksherlock Date: Mon, 28 Feb 2011 04:44:56 +0000 Subject: [PATCH] fix dc42 errors git-svn-id: https://profuse.googlecode.com/svn/branches/v2@367 aa027e90-d47c-11dd-86d7-074df07e0730 --- Device/DiskCopy42Image.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Device/DiskCopy42Image.cpp b/Device/DiskCopy42Image.cpp index d6c6d59..7c0956c 100644 --- a/Device/DiskCopy42Image.cpp +++ b/Device/DiskCopy42Image.cpp @@ -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.