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

msi: Fix loading of long strings.

parent 25f521f1
...@@ -717,8 +717,8 @@ string_table *load_string_table( IStorage *stg ) ...@@ -717,8 +717,8 @@ string_table *load_string_table( IStorage *stg )
* and its the high word of the length is inserted in the null string's * and its the high word of the length is inserted in the null string's
* reference count field. * reference count field.
*/ */
if( pool[i*2-2] == 0 ) if( pool[i*2-2] == 0 && pool[i*2-1] )
len += pool[i*2-1] * 0x10000; len += pool[i*2+1] * 0x10000;
if( (offset + len) > datasize ) if( (offset + len) > datasize )
{ {
......
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