forked from mirrors/gecko-dev
Bug 1844908 - Remove pre-Win10-specific codepath from memory/. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D184296
This commit is contained in:
parent
1518105f40
commit
4a82024239
1 changed files with 0 additions and 6 deletions
|
|
@ -6,7 +6,6 @@
|
|||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/mozalloc.h"
|
||||
#include "mozilla/WindowsVersion.h"
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
|
|
@ -40,11 +39,6 @@ bool VolatileBuffer::Init(size_t aSize, size_t aAlignment) {
|
|||
goto heap_alloc;
|
||||
}
|
||||
|
||||
static bool sUndoSupported = IsWin8OrLater();
|
||||
if (!sUndoSupported) {
|
||||
goto heap_alloc;
|
||||
}
|
||||
|
||||
mBuf = VirtualAllocEx(GetCurrentProcess(), nullptr, mSize,
|
||||
MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
|
||||
if (mBuf) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue