mfplat: Do not allocate more memory than requested.
commit52b5caa48884d4798e02d7cedba596da6a757aec
authorGiovanni Mascellani <gmascellani@codeweavers.com>
Tue, 15 Mar 2022 13:29:22 +0000 (15 14:29 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 17 Mar 2022 09:48:32 +0000 (17 10:48 +0100)
tree1e8b5d62b70cc345b36e1c07d811ea9ae76f15f8
parent20c4896b125c7926e57091aa3dbd82a6af1d2be4
mfplat: Do not allocate more memory than requested.

It is totally fine (though maybe a little strange) to allocate 10 bytes
requesting an alignment to a megabyte boundary or more, and this
shouldn't result in wasting an (nearly) entire megabyte of memory.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/mfplat/buffer.c