Commit 85045480 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

msi: Pointer to out of scope local variable (Coverity).

parent f955a7ca
...@@ -1143,6 +1143,8 @@ static UINT msi_stream_name( const MSITABLEVIEW *tv, UINT row, LPWSTR *pstname ) ...@@ -1143,6 +1143,8 @@ static UINT msi_stream_name( const MSITABLEVIEW *tv, UINT row, LPWSTR *pstname )
type = tv->columns[i].type; type = tv->columns[i].type;
if ( type & MSITYPE_KEY ) if ( type & MSITYPE_KEY )
{ {
WCHAR number[0x20];
r = TABLE_fetch_int( view, row, i+1, &ival ); r = TABLE_fetch_int( view, row, i+1, &ival );
if ( r != ERROR_SUCCESS ) if ( r != ERROR_SUCCESS )
goto err; goto err;
...@@ -1159,7 +1161,6 @@ static UINT msi_stream_name( const MSITABLEVIEW *tv, UINT row, LPWSTR *pstname ) ...@@ -1159,7 +1161,6 @@ static UINT msi_stream_name( const MSITABLEVIEW *tv, UINT row, LPWSTR *pstname )
else else
{ {
static const WCHAR fmt[] = { '%','d',0 }; static const WCHAR fmt[] = { '%','d',0 };
WCHAR number[0x20];
UINT n = bytes_per_column( tv->db, &tv->columns[i], LONG_STR_BYTES ); UINT n = bytes_per_column( tv->db, &tv->columns[i], LONG_STR_BYTES );
switch( n ) switch( n )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment