From f7fea9e9f0fde7c1e8928580f7a5bbb6501ccf35 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Tue, 1 Jan 2008 12:21:52 +0100 Subject: [PATCH] msi: Simplify condition in TABLE_fetch_stream(). --- dlls/msi/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msi/table.c b/dlls/msi/table.c index e5ad1aff978..42845d9e5c8 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;