Hans Leidekker : msi: Check the return value of fetch_int (clang).
Alexandre Julliard
julliard at winehq.org
Thu Jan 27 12:43:22 CST 2011
Module: wine
Branch: master
Commit: 78ce0a7350b77abb76e4a0b1017e91b7c7b68db5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=78ce0a7350b77abb76e4a0b1017e91b7c7b68db5
Author: Hans Leidekker <hans at codeweavers.com>
Date: Thu Jan 27 11:54:35 2011 +0100
msi: Check the return value of fetch_int (clang).
---
dlls/msi/where.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/where.c b/dlls/msi/where.c
index 7cafa2a..35a6074 100644
--- a/dlls/msi/where.c
+++ b/dlls/msi/where.c
@@ -328,11 +328,15 @@ static UINT WHERE_evaluate( MSIWHEREVIEW *wv, UINT row,
{
case EXPR_COL_NUMBER:
r = wv->table->ops->fetch_int( wv->table, row, cond->u.col_number, &tval );
+ if( r != ERROR_SUCCESS )
+ return r;
*val = tval - 0x8000;
return ERROR_SUCCESS;
case EXPR_COL_NUMBER32:
r = wv->table->ops->fetch_int( wv->table, row, cond->u.col_number, &tval );
+ if( r != ERROR_SUCCESS )
+ return r;
*val = tval - 0x80000000;
return r;
More information about the wine-cvs
mailing list