mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +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 New Issue
Block a user