Commit 16abc780 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Hack field types, fix ref counting.

parent b26087c3
...@@ -127,6 +127,11 @@ static UINT CREATE_execute( struct tagMSIVIEW *view, MSIHANDLE record ) ...@@ -127,6 +127,11 @@ static UINT CREATE_execute( struct tagMSIVIEW *view, MSIHANDLE record )
if( column_val < 0 ) if( column_val < 0 )
break; 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 ); r = tv->ops->set_int( tv, row, 1, table_val );
if( r ) if( r )
break; break;
......
...@@ -270,7 +270,7 @@ data_type: ...@@ -270,7 +270,7 @@ data_type:
} }
| TK_CHAR TK_LP data_count TK_RP | TK_CHAR TK_LP data_count TK_RP
{ {
$$ = MSITYPE_STRING | $3; $$ = MSITYPE_STRING | 0x500 | $3;
} }
| TK_LONGCHAR | TK_LONGCHAR
{ {
......
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