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); CloseHandle(mapRAM);
mapRAM = NULL; mapRAM = NULL;
CloseHandle(RAM); UnmapViewOfFile(RAM);
} }
else else
free(RAM); free(RAM);
@ -542,7 +542,7 @@ void win_FreeBuffers(uint8 *GameMemBlock, uint8 *RAM)
{ {
CloseHandle(mapGameMemBlock); CloseHandle(mapGameMemBlock);
mapGameMemBlock = NULL; mapGameMemBlock = NULL;
CloseHandle(GameMemBlock); UnmapViewOfFile(GameMemBlock);
} }
else else
free(GameMemBlock); free(GameMemBlock);

View File

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