Commit a21fe345 authored by Michael Karcher's avatar Michael Karcher Committed by Alexandre Julliard

Make sure we have a dgroup before patching prologs.

parent 8336cc9e
......@@ -452,13 +452,15 @@ void NE_FixupSegmentPrologs(NE_MODULE *pModule, WORD segnum)
TRACE_(module)("(%d);\n", segnum);
if (pSegTable[segnum-1].flags & NE_SEGFLAGS_DATA)
{
{
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);
bundle = (ET_BUNDLE *)((BYTE *)pModule+pModule->entry_table);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment