mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-18 12:49:25 +00:00
msi: Don't over-allocate memory for a MSISELECTVIEW.
This commit is contained in:
parent
b791c25274
commit
dad2967943
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue