Commit 5742b332 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

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