Hack field types, fix ref counting.
This commit is contained in:
parent
b26087c30e
commit
16abc780e6
|
@ -127,6 +127,11 @@ static UINT CREATE_execute( struct tagMSIVIEW *view, MSIHANDLE record )
|
|||
if( column_val < 0 )
|
||||
break;
|
||||
|
||||
/* add the string again here so we increase the reference count */
|
||||
table_val = msi_addstringW( cv->db->strings, 0, cv->name, -1, 1 );
|
||||
if( table_val < 0 )
|
||||
break;
|
||||
|
||||
r = tv->ops->set_int( tv, row, 1, table_val );
|
||||
if( r )
|
||||
break;
|
||||
|
|
|
@ -270,7 +270,7 @@ data_type:
|
|||
}
|
||||
| TK_CHAR TK_LP data_count TK_RP
|
||||
{
|
||||
$$ = MSITYPE_STRING | $3;
|
||||
$$ = MSITYPE_STRING | 0x500 | $3;
|
||||
}
|
||||
| TK_LONGCHAR
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue