winex11.drv: Fix buffer allocation size in import_xdnd_selection().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55443
This commit is contained in:
parent
8f76cc687d
commit
af3014b3e1
1 changed files with 1 additions and 1 deletions
|
@ -1308,7 +1308,7 @@ struct format_entry *import_xdnd_selection( Display *display, Window win, Atom s
|
|||
if (!(data = import_selection( display, win, selection, format, &size ))) continue;
|
||||
|
||||
entry_size = (FIELD_OFFSET( struct format_entry, data[size] ) + 7) & ~7;
|
||||
if (buf_size < size + entry_size)
|
||||
if (buf_size < *ret_size + entry_size)
|
||||
{
|
||||
if (!(tmp = realloc( ret, *ret_size + entry_size + 1024 ))) continue;
|
||||
ret = tmp;
|
||||
|
|
Loading…
Add table
Reference in a new issue