From 577f81f23a436653e59128b76195ce957df414c0 Mon Sep 17 00:00:00 2001 From: weissms Date: Thu, 6 Jan 2011 16:24:06 +0000 Subject: [PATCH] Fixed hunk size calculation. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@36411 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/dos/internalloadseg_aos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rom/dos/internalloadseg_aos.c b/rom/dos/internalloadseg_aos.c index 2d86aacdd5..e01421c741 100644 --- a/rom/dos/internalloadseg_aos.c +++ b/rom/dos/internalloadseg_aos.c @@ -1,5 +1,5 @@ /* - Copyright © 1995-2010, The AROS Development Team. All rights reserved. + Copyright © 1995-2011, The AROS Development Team. All rights reserved. $Id$ Desc: @@ -418,6 +418,7 @@ done: for (t = first; t < numhunks && t <= last; t++) { hunksize = *((BPTR*)BADDR(hunktab[t] - 1)); + hunksize = *((ULONG*)BADDR(hunktab[t]) - 1); if (hunksize) { bug("%p %d\n", BADDR(hunktab[t]), hunksize); -- 2.11.4.GIT