Make sure we have a dgroup before patching prologs.

This commit is contained in:
Michael Karcher 1999-08-15 14:16:42 +00:00 committed by Alexandre Julliard
parent 8336cc9e51
commit a21fe34596

View file

@ -456,8 +456,10 @@ void NE_FixupSegmentPrologs(NE_MODULE *pModule, WORD segnum)
pSegTable[segnum-1].flags |= NE_SEGFLAGS_LOADED;
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);