mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:30:58 +00:00
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
|
||||
* reference count field.
|
||||
*/
|
||||
if( pool[i*2-2] == 0 )
|
||||
len += pool[i*2-1] * 0x10000;
|
||||
if( pool[i*2-2] == 0 && pool[i*2-1] )
|
||||
len += pool[i*2+1] * 0x10000;
|
||||
|
||||
if( (offset + len) > datasize )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue