diff options
| author | JosJuice <josjuice@gmail.com> | 2017-04-14 14:46:11 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-05-20 09:35:53 +0200 |
| commit | 89e60a41eb293de263fb7ad22280f64a97d52d33 (patch) | |
| tree | 0f3609b33c42acf64487c83ed09c2e593ad10d6e /Source/Core/Common/MemoryUtil.cpp | |
| parent | 4b4cf509f8746a8c4afb73a2a2de165179201db6 (diff) | |
MemoryUtil: 0 -> nullptr
Diffstat (limited to 'Source/Core/Common/MemoryUtil.cpp')
| -rw-r--r-- | Source/Core/Common/MemoryUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/MemoryUtil.cpp b/Source/Core/Common/MemoryUtil.cpp index db8201f84e..305d779c3f 100644 --- a/Source/Core/Common/MemoryUtil.cpp +++ b/Source/Core/Common/MemoryUtil.cpp @@ -37,7 +37,7 @@ namespace Common void* AllocateExecutableMemory(size_t size) { #if defined(_WIN32) - void* ptr = VirtualAlloc(0, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE); + void* ptr = VirtualAlloc(nullptr, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE); #else void* ptr = mmap(nullptr, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE, -1, 0); @@ -55,7 +55,7 @@ void* AllocateExecutableMemory(size_t size) void* AllocateMemoryPages(size_t size) { #ifdef _WIN32 - void* ptr = VirtualAlloc(0, size, MEM_COMMIT, PAGE_READWRITE); + void* ptr = VirtualAlloc(nullptr, size, MEM_COMMIT, PAGE_READWRITE); #else void* ptr = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); |
