msi: Fix loading of long strings.
This commit is contained in:
parent
25f521f1b2
commit
cfe36cc81d
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue