From 388885b0fe610329d3d5df5b4b9e7751e44884ee Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sat, 26 Oct 2002 09:30:15 +0000 Subject: [PATCH] Fill new allocated memory with 0xcd's Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@446 --- src/hardware/memory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hardware/memory.cpp b/src/hardware/memory.cpp index 783cc6d3..9ce74ac5 100644 --- a/src/hardware/memory.cpp +++ b/src/hardware/memory.cpp @@ -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 */