msi: Check the return value of fetch_int (clang).

This commit is contained in:
Hans Leidekker 2011-01-27 11:54:35 +01:00 committed by Alexandre Julliard
parent c469b77624
commit 78ce0a7350
1 changed files with 4 additions and 0 deletions

View File

@ -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;