msi: Remove unused and redundant name field from STORAGE structure.
This commit is contained in:
parent
8797fb52cf
commit
111d33b393
|
@ -43,7 +43,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msidb);
|
||||||
typedef struct tabSTORAGE
|
typedef struct tabSTORAGE
|
||||||
{
|
{
|
||||||
UINT str_index;
|
UINT str_index;
|
||||||
LPWSTR name;
|
|
||||||
IStorage *storage;
|
IStorage *storage;
|
||||||
} STORAGE;
|
} STORAGE;
|
||||||
|
|
||||||
|
@ -78,14 +77,7 @@ static STORAGE *create_storage(MSISTORAGESVIEW *sv, LPWSTR name, IStorage *stg)
|
||||||
if (!storage)
|
if (!storage)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
storage->name = strdupW(name);
|
storage->str_index = msi_addstringW(sv->db->strings, 0, name, -1, 1, StringNonPersistent);
|
||||||
if (!storage->name)
|
|
||||||
{
|
|
||||||
msi_free(storage);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
storage->str_index = msi_addstringW(sv->db->strings, 0, storage->name, -1, 1, StringNonPersistent);
|
|
||||||
storage->storage = stg;
|
storage->storage = stg;
|
||||||
|
|
||||||
if (storage->storage)
|
if (storage->storage)
|
||||||
|
@ -436,8 +428,6 @@ static UINT STORAGES_delete(struct tagMSIVIEW *view)
|
||||||
{
|
{
|
||||||
if (sv->storages[i]->storage)
|
if (sv->storages[i]->storage)
|
||||||
IStorage_Release(sv->storages[i]->storage);
|
IStorage_Release(sv->storages[i]->storage);
|
||||||
|
|
||||||
msi_free(sv->storages[i]->name);
|
|
||||||
msi_free(sv->storages[i]);
|
msi_free(sv->storages[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue