From bf67b14602bad98273458c8a6adecb04ab45c37e Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 26 Jun 2007 22:24:47 +0100 Subject: [PATCH] msi: Fix bytes_per_column for binary types when the database is using 3-byte string references. --- dlls/msi/table.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msi/table.c b/dlls/msi/table.c index cf706d8adf2..359468ae0f9 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 )