msi: Handle null integers properly in transforms.

This commit is contained in:
Mike McCormack 2006-10-06 17:35:13 +09:00 committed by Alexandre Julliard
parent 5bbc6323dc
commit 2c626c9d81
1 changed files with 5 additions and 5 deletions

View File

@ -1679,15 +1679,15 @@ static MSIRECORD *msi_get_transform_record( MSITABLEVIEW *tv, string_table *st,
} }
else else
{ {
val ^= 0x8000; if (val)
MSI_RecordSetInteger( rec, i+1, val ); MSI_RecordSetInteger( rec, i+1, val^0x8000 );
TRACE("[0x%04x]", val ); TRACE("[0x%04x]", val );
} }
break; break;
case 4: case 4:
val = rawdata[ofs] + (rawdata[ofs + 1]<<16); val = (rawdata[ofs] + (rawdata[ofs + 1]<<16));
/* val ^= 0x80000000; */ if (val)
MSI_RecordSetInteger( rec, i+1, val ); MSI_RecordSetInteger( rec, i+1, val^0x80000000 );
TRACE("[0x%08x]", val ); TRACE("[0x%08x]", val );
break; break;
default: default: