msi: Fix bytes_per_column for binary types when the database is using 3-byte string references.
This commit is contained in:
parent
0876f7664a
commit
bf67b14602
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue