fixed #3033634, fixed previous fix ;)

This commit is contained in:
CaH4e3 2010-07-23 17:07:47 +00:00
parent a501682e0f
commit 7b383576a0
2 changed files with 3 additions and 2 deletions

View File

@ -533,7 +533,7 @@ void win_FreeBuffers(uint8 *GameMemBlock, uint8 *RAM)
{
CloseHandle(mapRAM);
mapRAM = NULL;
CloseHandle(RAM);
UnmapViewOfFile(RAM);
}
else
free(RAM);
@ -542,7 +542,7 @@ void win_FreeBuffers(uint8 *GameMemBlock, uint8 *RAM)
{
CloseHandle(mapGameMemBlock);
mapGameMemBlock = NULL;
CloseHandle(GameMemBlock);
UnmapViewOfFile(GameMemBlock);
}
else
free(GameMemBlock);

View File

@ -238,6 +238,7 @@ void Mapper69_init(void)
{
sunindex=0;
setprg8(0x6000,0);
SetupCartPRGMapping(0x10,WRAM,8192,1);
SetWriteHandler(0x8000,0xbfff,Mapper69_write);