MSI: hack field types, fix ref counting
Mike McCormack
mike at codeweavers.com
Tue Jun 29 07:22:24 CDT 2004
ChangeLog:
* hack field types, fix ref counting
-------------- next part --------------
diff -ur dlls/msi.old/create.c dlls/msi/create.c
--- dlls/msi.old/create.c 2004-06-29 07:17:37.000000000 -0500
+++ dlls/msi/create.c 2004-06-29 07:19:21.000000000 -0500
@@ -127,6 +127,11 @@
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;
diff -ur dlls/msi.old/sql.y dlls/msi/sql.y
--- dlls/msi.old/sql.y 2004-06-29 07:17:37.000000000 -0500
+++ dlls/msi/sql.y 2004-06-29 07:19:21.000000000 -0500
@@ -270,7 +270,7 @@
}
| TK_CHAR TK_LP data_count TK_RP
{
- $$ = MSITYPE_STRING | $3;
+ $$ = MSITYPE_STRING | 0x500 | $3;
}
| TK_LONGCHAR
{
More information about the wine-patches
mailing list