1
0
Fork 0

Fill new allocated memory with 0xcd's

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@446
This commit is contained in:
Sjoerd van der Berg 2002-10-26 09:30:15 +00:00
parent 845e239eba
commit 388885b0fe

View file

@ -245,6 +245,7 @@ void MEM_Init(Section * sect) {
if (!memory) {
throw("Can't allocate memory for memory");
}
memset(memory,0xcd,1024*1024);
/* Setup tables for first mb */
MEM_SetupMapping(0,PAGE_COUNT(1024*1024),memory);
/* Setup tables for HMA Area */