reallocate allocates on handle 0 now as well.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2694
This commit is contained in:
parent
2b5eb21748
commit
3055f3bdd5
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue