Added support for 32-bit NE code segments.

This commit is contained in:
Ulrich Weigand 1999-07-15 14:31:44 +00:00 committed by Alexandre Julliard
parent 23dc2e6a73
commit 5e59b1a5b4
2 changed files with 2 additions and 1 deletions

View file

@ -135,6 +135,7 @@ struct ne_segment_table_entry_s
#define NE_SEGFLAGS_RELOC_DATA 0x0100
#define NE_SEGFLAGS_SELFLOAD 0x0800
#define NE_SEGFLAGS_DISCARDABLE 0x1000
#define NE_SEGFLAGS_32BIT 0x2000
/*
* Relocation table entry

View file

@ -860,7 +860,7 @@ BOOL NE_CreateSegments( NE_MODULE *pModule )
pSegment->hSeg = GLOBAL_Alloc( NE_Ne2MemFlags(pSegment->flags),
minsize, pModule->self,
!(pSegment->flags & NE_SEGFLAGS_DATA),
FALSE,
(pSegment->flags & NE_SEGFLAGS_32BIT) != 0,
FALSE /*pSegment->flags & NE_SEGFLAGS_READONLY*/ );
if (!pSegment->hSeg) return FALSE;
pSegment->flags |= NE_SEGFLAGS_ALLOCATED;