Commit eb101df6 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Fix column width calculation.

The iTunes 8 installer database has an integer column of size 1 which takes up two bytes at storage level, so adjust the column size calculation to account for this difference.
parent 0b60ed8f
......@@ -127,11 +127,17 @@ static inline UINT bytes_per_column( MSIDATABASE *db, const MSICOLUMNINFO *col )
{
if( MSITYPE_IS_BINARY(col->type) )
return 2;
if( col->type & MSITYPE_STRING )
return db->bytes_per_strref;
if( (col->type & 0xff) > 4 )
if( (col->type & 0xff) <= 2)
return 2;
if( (col->type & 0xff) != 4 )
ERR("Invalid column size!\n");
return col->type & 0xff;
return 4;
}
static int utf2mime(int x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment