Commit dacea646 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Add objects to lists at the right time.

parent 321a7b2b
...@@ -240,6 +240,8 @@ static MSICLASS *load_class( MSIPACKAGE* package, MSIRECORD *row ) ...@@ -240,6 +240,8 @@ static MSICLASS *load_class( MSIPACKAGE* package, MSIRECORD *row )
if (!cls) if (!cls)
return NULL; return NULL;
list_add_tail( &package->classes, &cls->entry );
sz = IDENTIFIER_SIZE; sz = IDENTIFIER_SIZE;
MSI_RecordGetStringW(row, 1, cls->CLSID, &sz); MSI_RecordGetStringW(row, 1, cls->CLSID, &sz);
TRACE("loading class %s\n",debugstr_w(cls->CLSID)); TRACE("loading class %s\n",debugstr_w(cls->CLSID));
...@@ -435,6 +437,10 @@ static MSIEXTENSION *load_extension( MSIPACKAGE* package, MSIRECORD *row ) ...@@ -435,6 +437,10 @@ static MSIEXTENSION *load_extension( MSIPACKAGE* package, MSIRECORD *row )
/* fill in the data */ /* fill in the data */
ext = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(MSIEXTENSION) ); ext = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(MSIEXTENSION) );
if (!ext)
return NULL;
list_add_tail( &package->extensions, &ext->entry );
sz = 256; sz = 256;
MSI_RecordGetStringW( row, 1, ext->Extension, &sz ); MSI_RecordGetStringW( row, 1, ext->Extension, &sz );
...@@ -452,8 +458,6 @@ static MSIEXTENSION *load_extension( MSIPACKAGE* package, MSIRECORD *row ) ...@@ -452,8 +458,6 @@ static MSIEXTENSION *load_extension( MSIPACKAGE* package, MSIRECORD *row )
buffer = MSI_RecordGetString(row,5); buffer = MSI_RecordGetString(row,5);
ext->Feature = get_loaded_feature( package, buffer ); ext->Feature = get_loaded_feature( package, buffer );
list_add_tail( &package->extensions, &ext->entry );
return ext; return ext;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment