msi: Fix bytes_per_column for binary types when the database is using 3-byte string references.

This commit is contained in:
Rob Shearman 2007-06-26 22:24:47 +01:00 committed by Alexandre Julliard
parent 0876f7664a
commit bf67b14602
1 changed files with 2 additions and 0 deletions

View File

@ -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 )