[Project64] N64RomClass.cpp Unprotect memory on freeing it

This commit is contained in:
zilmar 2016-01-15 08:11:12 +11:00
parent 05b2f1e5cf
commit 46f2afaecc
1 changed files with 1 additions and 2 deletions

View File

@ -617,10 +617,9 @@ void CN64Rom::UnallocateRomImage()
{
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)
{
ProtectMemory(m_ROMImage, m_RomFileSize, MEM_READWRITE);
delete[] m_ROMImageBase;
m_ROMImageBase = NULL;
}