[Project64] N64RomClass.cpp Unprotect memory on freeing it
This commit is contained in:
parent
05b2f1e5cf
commit
46f2afaecc
|
@ -617,10 +617,9 @@ void CN64Rom::UnallocateRomImage()
|
||||||
{
|
{
|
||||||
m_RomFile.Close();
|
m_RomFile.Close();
|
||||||
|
|
||||||
//if this value is still set then the image was not created a map
|
|
||||||
//file but created with VirtualAllocate
|
|
||||||
if (m_ROMImageBase)
|
if (m_ROMImageBase)
|
||||||
{
|
{
|
||||||
|
ProtectMemory(m_ROMImage, m_RomFileSize, MEM_READWRITE);
|
||||||
delete[] m_ROMImageBase;
|
delete[] m_ROMImageBase;
|
||||||
m_ROMImageBase = NULL;
|
m_ROMImageBase = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue