msi: Check the correct pointer after allocating memory.

This commit is contained in:
Mike McCormack 2006-04-07 13:30:40 +09:00 committed by Alexandre Julliard
parent 85e8d3adf8
commit ed9745b94f
1 changed files with 1 additions and 1 deletions

View File

@ -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;