Add objects to lists at the right time.

This commit is contained in:
Mike McCormack 2005-09-02 11:21:22 +00:00 committed by Alexandre Julliard
parent 321a7b2b22
commit dacea64643
1 changed files with 6 additions and 2 deletions

View File

@ -240,6 +240,8 @@ static MSICLASS *load_class( MSIPACKAGE* package, MSIRECORD *row )
if (!cls)
return NULL;
list_add_tail( &package->classes, &cls->entry );
sz = IDENTIFIER_SIZE;
MSI_RecordGetStringW(row, 1, cls->CLSID, &sz);
TRACE("loading class %s\n",debugstr_w(cls->CLSID));
@ -435,6 +437,10 @@ static MSIEXTENSION *load_extension( MSIPACKAGE* package, MSIRECORD *row )
/* fill in the data */
ext = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(MSIEXTENSION) );
if (!ext)
return NULL;
list_add_tail( &package->extensions, &ext->entry );
sz = 256;
MSI_RecordGetStringW( row, 1, ext->Extension, &sz );
@ -452,8 +458,6 @@ static MSIEXTENSION *load_extension( MSIPACKAGE* package, MSIRECORD *row )
buffer = MSI_RecordGetString(row,5);
ext->Feature = get_loaded_feature( package, buffer );
list_add_tail( &package->extensions, &ext->entry );
return ext;
}