msi warnings
Mike McCormack
mike at codeweavers.com
Sun Jul 11 17:01:55 CDT 2004
Marcus Meissner wrote:
> The warning in dlls/msi/:
>
> table.c:1165: Warnung: 'num_rows' is used uninitialized in this function
>
> is still there now that everything has been merged.
This should fix it. Let me know if not...
Mike
ChangeLog:
* remove a piece of dead code causing a warning
-------------- next part --------------
Index: dlls/msi/table.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/table.c,v
retrieving revision 1.20
diff -u -r1.20 table.c
--- dlls/msi/table.c 9 Jul 2004 22:25:34 -0000 1.20
+++ dlls/msi/table.c 11 Jul 2004 21:57:55 -0000
@@ -1147,7 +1147,7 @@
static UINT TABLE_set_int( struct tagMSIVIEW *view, UINT row, UINT col, UINT val )
{
MSITABLEVIEW *tv = (MSITABLEVIEW*)view;
- UINT offset, num_rows, n;
+ UINT offset, n;
if( !tv->table )
return ERROR_INVALID_PARAMETER;
@@ -1162,7 +1162,6 @@
return ERROR_FUNCTION_FAILED;
}
- offset = row + (tv->columns[col-1].offset/2) * num_rows;
n = bytes_per_column( &tv->columns[col-1] );
switch( n )
{
More information about the wine-patches
mailing list