msi: Don't over-allocate memory for a MSISELECTVIEW.

This commit is contained in:
Michael Stefaniuc 2012-11-12 10:28:39 +01:00 committed by Alexandre Julliard
parent b791c25274
commit dad2967943
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ UINT SELECT_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table,
count = select_count_columns( columns );
sv = msi_alloc_zero( sizeof *sv + count*sizeof (UINT) );
sv = msi_alloc_zero( FIELD_OFFSET( MSISELECTVIEW, cols[count] ));
if( !sv )
return ERROR_FUNCTION_FAILED;