From 361a19cd9487374fc9ccf91bca2baf8d5661d035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 24 May 2007 14:36:57 +0000 Subject: [PATCH] makebootable didn't work correctly on BeOS: the partition offset was divided by the block size once too often. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21228 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/makebootable/platform/bios_ia32/makebootable.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/makebootable/platform/bios_ia32/makebootable.cpp b/src/bin/makebootable/platform/bios_ia32/makebootable.cpp index 823d498513..cb6b595524 100644 --- a/src/bin/makebootable/platform/bios_ia32/makebootable.cpp +++ b/src/bin/makebootable/platform/bios_ia32/makebootable.cpp @@ -386,8 +386,7 @@ main(int argc, const char *const *argv) if (!noPartition) { partition_info partitionInfo; if (ioctl(fd, B_GET_PARTITION_INFO, &partitionInfo) == 0) { - // hard coded sector size: 512 bytes - partitionOffset = partitionInfo.offset / 512; + partitionOffset = partitionInfo.offset; } else { fprintf(stderr, "Error: Failed to get partition info: %s", strerror(errno));