Make sure we have a dgroup before patching prologs.
This commit is contained in:
parent
8336cc9e51
commit
a21fe34596
|
@ -452,13 +452,15 @@ void NE_FixupSegmentPrologs(NE_MODULE *pModule, WORD segnum)
|
||||||
TRACE_(module)("(%d);\n", segnum);
|
TRACE_(module)("(%d);\n", segnum);
|
||||||
|
|
||||||
if (pSegTable[segnum-1].flags & NE_SEGFLAGS_DATA)
|
if (pSegTable[segnum-1].flags & NE_SEGFLAGS_DATA)
|
||||||
{
|
{
|
||||||
pSegTable[segnum-1].flags |= NE_SEGFLAGS_LOADED;
|
pSegTable[segnum-1].flags |= NE_SEGFLAGS_LOADED;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!(dgroup = SEL(pSegTable[pModule->dgroup-1].hSeg)))
|
|
||||||
return;
|
|
||||||
|
|
||||||
|
if (!pModule->dgroup) return;
|
||||||
|
|
||||||
|
if (!(dgroup = SEL(pSegTable[pModule->dgroup-1].hSeg))) return;
|
||||||
|
|
||||||
pSeg = PTR_SEG_OFF_TO_LIN(sel, 0);
|
pSeg = PTR_SEG_OFF_TO_LIN(sel, 0);
|
||||||
|
|
||||||
bundle = (ET_BUNDLE *)((BYTE *)pModule+pModule->entry_table);
|
bundle = (ET_BUNDLE *)((BYTE *)pModule+pModule->entry_table);
|
||||||
|
|
Loading…
Reference in New Issue