orders: Fix OFFSCREEN_DELETE_LIST allocation size
The size of OFFSCREEN_DELETE_LIST list allocation was incorrectly changed
by commit and consequently fixed incorrectly by commit
Let's count the allocation size based on new size and not based on current
size in order to prevent some memory issues.
@@ -2460,7 +2460,7 @@ static BOOL update_read_create_offscreen_bitmap_order(wStream* s,
if (deleteList->cIndices > deleteList->sIndices)
{
UINT16* new_indices;
- new_indices = (UINT16*)realloc(deleteList->indices, deleteList->sIndices * 2);
+ new_indices = (UINT16*)realloc(deleteList->indices, deleteList->cIndices * 2);
if (!new_indices)
return FALSE;
