X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fdelete_image.c;h=42e1ae4e2ba9e0d6ab667ee136852f897ed36f39;hb=8b676e7d340fb8197824745eb387e1d3154e6f60;hp=442f8b609436f1c1c9c3e50eaa08c9eebaf2afc9;hpb=9a20d1f99bd5dcd22e55300a5e29748486e585d7;p=wimlib diff --git a/src/delete_image.c b/src/delete_image.c index 442f8b60..42e1ae4e 100644 --- a/src/delete_image.c +++ b/src/delete_image.c @@ -38,15 +38,15 @@ delete_wim_image(WIMStruct *wim, int image) int ret; /* Load the metadata for the image to be deleted. This is necessary - * because streams referenced by files in the image need to have their + * because blobs referenced by files in the image need to have their * reference counts decremented. */ ret = select_wim_image(wim, image); if (ret) return ret; /* Release the reference to the image metadata and decrement reference - * counts on the streams referenced by files in the image. */ - put_image_metadata(wim->image_metadata[image - 1], wim->lookup_table); + * counts on the blobs referenced by files in the image. */ + put_image_metadata(wim->image_metadata[image - 1], wim->blob_table); /* Remove the empty slot from the image metadata array. */ memmove(&wim->image_metadata[image - 1], &wim->image_metadata[image], @@ -57,7 +57,7 @@ delete_wim_image(WIMStruct *wim, int image) --wim->hdr.image_count; /* Remove the image from the XML information. */ - xml_delete_image(&wim->wim_info, image); + xml_delete_image(wim->xml_info, image); /* Fix the boot index. */ if (wim->hdr.boot_idx == image)