No need to use loadAddress as delta as delta isn't used for i==0. CID3197, CID 1972 and ticket #6990.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39987 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Fredrik Holmqvist 2010-12-28 17:04:58 +00:00
parent 5c3457dd22
commit 7f83c5cd84

View File

@ -301,7 +301,7 @@ map_image(int fd, char const* path, image_t* image, bool fixed)
uint32 regionAddressSpecifier;
get_image_region_load_address(image, i,
i > 0 ? loadAddress - image->regions[i - 1].vmstart : loadAddress,
i > 0 ? loadAddress - image->regions[i - 1].vmstart : 0,
fixed, loadAddress, regionAddressSpecifier);
if (i == 0) {
reservedAddress = loadAddress;