msi: An empty string table entry should always have a zero refcount.

This commit is contained in:
Mike McCormack 2006-10-11 19:16:09 +09:00 committed by Alexandre Julliard
parent 732e0e908b
commit 5742b332fe
1 changed files with 4 additions and 1 deletions

View File

@ -804,7 +804,10 @@ static UINT save_string_table( MSIDATABASE *db )
if( sz && (sz < (datasize - used ) ) ) if( sz && (sz < (datasize - used ) ) )
sz--; sz--;
if (sz)
pool[ n*2 + 1 ] = msi_id_refcount( db->strings, i ); pool[ n*2 + 1 ] = msi_id_refcount( db->strings, i );
else
pool[ n*2 + 1 ] = 0;
if (sz < 0x10000) if (sz < 0x10000)
{ {
pool[ n*2 ] = sz; pool[ n*2 ] = sz;