Marcus Meissner : msi: Pointer to out of scope local variable (Coverity).
Alexandre Julliard
julliard at winehq.org
Fri Mar 4 09:39:36 CST 2011
Module: wine
Branch: master
Commit: 85045480375b8a3277dd20282d6b18ac0ea2070d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=85045480375b8a3277dd20282d6b18ac0ea2070d
Author: Marcus Meissner <meissner at suse.de>
Date: Fri Mar 4 13:48:27 2011 +0100
msi: Pointer to out of scope local variable (Coverity).
---
dlls/msi/table.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index 739e189..cdbdd58 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -1143,6 +1143,8 @@ static UINT msi_stream_name( const MSITABLEVIEW *tv, UINT row, LPWSTR *pstname )
type = tv->columns[i].type;
if ( type & MSITYPE_KEY )
{
+ WCHAR number[0x20];
+
r = TABLE_fetch_int( view, row, i+1, &ival );
if ( r != ERROR_SUCCESS )
goto err;
@@ -1159,7 +1161,6 @@ static UINT msi_stream_name( const MSITABLEVIEW *tv, UINT row, LPWSTR *pstname )
else
{
static const WCHAR fmt[] = { '%','d',0 };
- WCHAR number[0x20];
UINT n = bytes_per_column( tv->db, &tv->columns[i], LONG_STR_BYTES );
switch( n )
More information about the wine-cvs
mailing list