summaryrefslogtreecommitdiffstats
path: root/src/libs/7zip/win/CPP/Windows/Memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/7zip/win/CPP/Windows/Memory.cpp')
-rw-r--r--src/libs/7zip/win/CPP/Windows/Memory.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/libs/7zip/win/CPP/Windows/Memory.cpp b/src/libs/7zip/win/CPP/Windows/Memory.cpp
deleted file mode 100644
index 4c23205e1..000000000
--- a/src/libs/7zip/win/CPP/Windows/Memory.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-// Windows/Memory.cpp
-
-#include "StdAfx.h"
-
-#include "Windows/Memory.h"
-
-namespace NWindows {
-namespace NMemory {
-
-bool CGlobal::Alloc(UINT flags, SIZE_T size)
-{
- HGLOBAL newBlock = ::GlobalAlloc(flags, size);
- if (newBlock == NULL)
- return false;
- m_MemoryHandle = newBlock;
- return true;
-}
-
-bool CGlobal::Free()
-{
- if (m_MemoryHandle == NULL)
- return true;
- m_MemoryHandle = ::GlobalFree(m_MemoryHandle);
- return (m_MemoryHandle == NULL);
-}
-
-bool CGlobal::ReAlloc(SIZE_T size)
-{
- HGLOBAL newBlock = ::GlobalReAlloc(m_MemoryHandle, size, GMEM_MOVEABLE);
- if (newBlock == NULL)
- return false;
- m_MemoryHandle = newBlock;
- return true;
-}
-
-}}