Kernel add-ons were not correctly registered (image_info was initialized

after the registration...).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8087 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-06-21 00:10:55 +00:00
parent c59eff4591
commit b045bd49f4

View File

@ -97,8 +97,6 @@ register_elf_image(struct elf_image_info *image)
{
image_info imageInfo;
image->id = register_image(team_get_kernel_team(), &imageInfo, sizeof(image_info));
memset(&imageInfo, 0, sizeof(image_info));
imageInfo.id = image->id;
imageInfo.type = B_SYSTEM_IMAGE;
@ -109,6 +107,7 @@ register_elf_image(struct elf_image_info *image)
imageInfo.data = (void *)image->data_region.start;
imageInfo.data_size = image->data_region.size;
image->id = register_image(team_get_kernel_team(), &imageInfo, sizeof(image_info));
hash_insert(sImagesHash, image);
}