Rob Shearman : msi:
Fix bytes_per_column for binary types when the database is using 3-byte
string references .
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 27 09:11:14 CDT 2007
Module: wine
Branch: master
Commit: bf67b14602bad98273458c8a6adecb04ab45c37e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf67b14602bad98273458c8a6adecb04ab45c37e
Author: Rob Shearman <rob at codeweavers.com>
Date: Tue Jun 26 22:24:47 2007 +0100
msi: Fix bytes_per_column for binary types when the database is using 3-byte string references.
---
dlls/msi/table.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index cf706d8..359468a 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -125,6 +125,8 @@ void msi_table_set_strref(UINT bytes_per_strref)
static inline UINT bytes_per_column( const MSICOLUMNINFO *col )
{
+ if( MSITYPE_IS_BINARY(col->type) )
+ return 2;
if( col->type & MSITYPE_STRING )
return _Columns_cols[1].offset;
if( (col->type & 0xff) > 4 )
More information about the wine-cvs
mailing list