Play-/tools/ElfView/Source/ElfViewEx.cpp

33 lines
438 B
C++
Raw Permalink Normal View History

#include "ElfViewEx.h"
using namespace Framework;
2018-04-30 21:01:23 +01:00
CElfViewEx::CElfViewEx(HWND parentWnd)
: CELFView(parentWnd)
, m_elf(NULL)
{
}
CElfViewEx::~CElfViewEx()
{
SetELF(NULL);
if(m_elf != NULL)
{
delete m_elf;
m_elf = NULL;
}
}
void CElfViewEx::LoadElf(Framework::CStream& stream)
{
if(m_elf != NULL)
{
delete m_elf;
m_elf = NULL;
}
m_elf = new CElfFile(stream);
SetELF(m_elf);
}