mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 12:03:45 +00:00
Make sure we have a dgroup before patching prologs.
This commit is contained in:
parent
8336cc9e51
commit
a21fe34596
1 changed files with 5 additions and 3 deletions
|
@ -452,12 +452,14 @@ 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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue