From 3055f3bdd50de4e44cf59a4ef51d457ffc56ee0d Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 30 Aug 2006 12:19:04 +0000 Subject: [PATCH] reallocate allocates on handle 0 now as well. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2694 --- src/hardware/memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/memory.cpp b/src/hardware/memory.cpp index c14cf5cd..f4168e8a 100644 --- a/src/hardware/memory.cpp +++ b/src/hardware/memory.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: memory.cpp,v 1.44 2006-02-09 11:47:49 qbix79 Exp $ */ +/* $Id: memory.cpp,v 1.45 2006-08-30 12:19:04 qbix79 Exp $ */ #include "dosbox.h" #include "mem.h" @@ -300,7 +300,7 @@ void MEM_ReleasePages(MemHandle handle) { } bool MEM_ReAllocatePages(MemHandle & handle,Bitu pages,bool sequence) { - if (handle<0) { + if (handle<=0) { if (!pages) return true; handle=MEM_AllocatePages(pages,sequence); return (handle>0);