Mike McCormack : msi:
Only ignore the StringPool and StringData in a transform.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Oct 5 05:03:23 CDT 2006
Module: wine
Branch: master
Commit: 59edd7d8a8e6ef4ea166cf611068015a3121772a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=59edd7d8a8e6ef4ea166cf611068015a3121772a
Author: Mike McCormack <mike at codeweavers.com>
Date: Thu Oct 5 17:00:46 2006 +0900
msi: Only ignore the StringPool and StringData in a transform.
---
dlls/msi/table.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index ef54c76..0a228dc 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -1966,11 +1966,17 @@ UINT msi_table_apply_transform( MSIDATAB
r = IEnumSTATSTG_Next( stgenum, 1, &stat, &count );
if( FAILED( r ) || !count )
break;
+
decode_streamname( stat.pwcsName, name );
- if( ( name[0] == 0x4840 ) && ( name[1] != '_' ) )
- ret = msi_table_load_transform( db, stg, strings, name+1 );
- else
- TRACE("transform contains stream %s\n", debugstr_w(name));
+ TRACE("transform contains stream %s\n", debugstr_w(name));
+
+ if ( name[0] != 0x4840 )
+ continue;
+
+ if ( !lstrcmpW(name+1, szStringPool ) || !lstrcmpW(name+1, szStringData) )
+ continue;
+
+ ret = msi_table_load_transform( db, stg, strings, name+1 );
}
if ( ret == ERROR_SUCCESS )
More information about the wine-cvs
mailing list