mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Re-add clipboard functions
This commit is contained in:
@@ -122,8 +122,18 @@ namespace PortabilityLayer
|
||||
|
||||
bool MemoryManagerImpl::ResizeHandle(MMHandleBlock *hdl, size_t newSize)
|
||||
{
|
||||
if (hdl->m_contents == nullptr)
|
||||
return false;
|
||||
if (hdl->m_contents == nullptr)
|
||||
{
|
||||
if (newSize != 0)
|
||||
{
|
||||
void *newBuf = Alloc(newSize);
|
||||
if (!newBuf)
|
||||
return false;
|
||||
|
||||
hdl->m_contents = newBuf;
|
||||
hdl->m_size = newSize;
|
||||
}
|
||||
}
|
||||
|
||||
if (newSize != hdl->m_size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user