msi: Check the correct pointer after allocating memory.
This commit is contained in:
parent
85e8d3adf8
commit
ed9745b94f
|
@ -82,7 +82,7 @@ string_table *msi_init_stringtable( int entries, UINT codepage )
|
|||
if( entries < 1 )
|
||||
entries = 1;
|
||||
st->strings = msi_alloc_zero( sizeof (msistring) * entries );
|
||||
if( !st )
|
||||
if( !st->strings )
|
||||
{
|
||||
msi_free( st );
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue