Merge branch 'wine-heap-fix'
Wine heap fix and other global memory-related cleanup. See https://github.com/wxWidgets/wxWidgets/pull/2030
This commit is contained in:
@@ -773,6 +773,15 @@ public:
|
||||
void *Get() const { return m_ptr; }
|
||||
operator void *() const { return m_ptr; }
|
||||
|
||||
size_t GetSize() const
|
||||
{
|
||||
const size_t size = ::GlobalSize(m_hGlobal);
|
||||
if ( !size )
|
||||
wxLogLastError(wxT("GlobalSize"));
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
private:
|
||||
HGLOBAL m_hGlobal;
|
||||
void *m_ptr;
|
||||
|
Reference in New Issue
Block a user