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:
parent
845e239eba
commit
388885b0fe
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue