Hack field types, fix ref counting.

This commit is contained in:
Mike McCormack 2004-06-30 18:27:41 +00:00 committed by Alexandre Julliard
parent b26087c30e
commit 16abc780e6
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -270,7 +270,7 @@ data_type:
}
| TK_CHAR TK_LP data_count TK_RP
{
$$ = MSITYPE_STRING | $3;
$$ = MSITYPE_STRING | 0x500 | $3;
}
| TK_LONGCHAR
{