mirror of
https://github.com/reactos/wine.git
synced 2025-02-27 16:26:08 +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…
x
Reference in New Issue
Block a user