msi: Fetch the volume name when getting disk info.

This commit is contained in:
James Hawkins 2007-06-25 13:05:03 -07:00 committed by Alexandre Julliard
parent 8a94f7aad3
commit 71d7da1170
1 changed files with 3 additions and 0 deletions

View File

@ -282,6 +282,7 @@ static UINT msi_media_get_disk_info( MSIPACKAGE *package, struct media_info *mi
mi->disk_prompt = strdupW(MSI_RecordGetString(row, 3)); mi->disk_prompt = strdupW(MSI_RecordGetString(row, 3));
mi->cabinet = strdupW(MSI_RecordGetString(row, 4)); mi->cabinet = strdupW(MSI_RecordGetString(row, 4));
mi->volume_label = strdupW(MSI_RecordGetString(row, 5));
ptr = strrchrW(mi->source, '\\') + 1; ptr = strrchrW(mi->source, '\\') + 1;
lstrcpyW(ptr, mi->cabinet); lstrcpyW(ptr, mi->cabinet);
@ -310,6 +311,8 @@ static INT_PTR cabinet_notify(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin)
UINT rc; UINT rc;
msi_free(mi->disk_prompt); msi_free(mi->disk_prompt);
msi_free(mi->cabinet);
msi_free(mi->volume_label);
mi->disk_id++; mi->disk_id++;
mi->is_continuous = TRUE; mi->is_continuous = TRUE;