Module: wine Branch: master Commit: f7fea9e9f0fde7c1e8928580f7a5bbb6501ccf35 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f7fea9e9f0fde7c1e8928580f7...
Author: Gerald Pfeifer gerald@pfeifer.com Date: Tue Jan 1 12:21:52 2008 +0100
msi: Simplify condition in TABLE_fetch_stream().
---
dlls/msi/table.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/table.c b/dlls/msi/table.c index e5ad1af..42845d9 100644 --- a/dlls/msi/table.c +++ b/dlls/msi/table.c @@ -1206,7 +1206,7 @@ static UINT TABLE_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, ISt return r;
/* check the column value is in range */ - if (ival < 0 || ival > tv->num_cols || ival == col) + if (ival > tv->num_cols || ival == col) { ERR("bad column ref (%u) for stream\n", ival); return ERROR_FUNCTION_FAILED;