mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 829954 - Part 1: Make AlignedArray fallible. r=jrmuizel
This commit is contained in:
parent
96667a8d5a
commit
919d149d6f
@ -110,7 +110,7 @@ struct AlignedArray
|
||||
MOZ_ALWAYS_INLINE void Realloc(size_t aSize)
|
||||
{
|
||||
delete [] mStorage;
|
||||
mStorage = new T[aSize + (alignment - 1)];
|
||||
mStorage = new (std::nothrow) T[aSize + (alignment - 1)];
|
||||
if (uintptr_t(mStorage) % alignment) {
|
||||
// Our storage does not start at a <alignment>-byte boundary. Make sure mData does!
|
||||
mPtr = (uint32_t*)(uintptr_t(mStorage) +
|
||||
|
Loading…
Reference in New Issue
Block a user