Mike McCormack : msi: Fix loading of long strings.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jun 13 05:59:21 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: cfe36cc81d27d134f7bf080afce39c3fc07ec23c
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=cfe36cc81d27d134f7bf080afce39c3fc07ec23c
Author: Mike McCormack <mike at codeweavers.com>
Date: Tue Jun 13 16:58:55 2006 +0900
msi: Fix loading of long strings.
---
dlls/msi/table.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index 007958e..96623df 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -717,8 +717,8 @@ string_table *load_string_table( IStorag
* 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 )
{
More information about the wine-cvs
mailing list