mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 20:25:38 +00:00
Ignore wrong hInstance.
This commit is contained in:
parent
0e04d8b0a8
commit
f959be9c97
|
@ -929,6 +929,12 @@ FARPROC16 WINAPI MakeProcInstance16( FARPROC16 func, HANDLE16 hInstance )
|
||||||
ERR_(task)("Ouch ! MakeProcInstance called with func == NULL !\n");
|
ERR_(task)("Ouch ! MakeProcInstance called with func == NULL !\n");
|
||||||
return (FARPROC16)0; /* Windows seems to do the same */
|
return (FARPROC16)0; /* Windows seems to do the same */
|
||||||
}
|
}
|
||||||
|
if ( GetTaskDS16() !=hInstance )
|
||||||
|
{
|
||||||
|
ERR_(task)("Problem with hInstance? Got %04x, using %04x instead\n",
|
||||||
|
hInstance,GetTaskDS16());
|
||||||
|
hInstance = GetTaskDS16();
|
||||||
|
}
|
||||||
if (!hInstance) hInstance = CURRENT_DS;
|
if (!hInstance) hInstance = CURRENT_DS;
|
||||||
thunkaddr = TASK_AllocThunk( GetCurrentTask() );
|
thunkaddr = TASK_AllocThunk( GetCurrentTask() );
|
||||||
if (!thunkaddr) return (FARPROC16)0;
|
if (!thunkaddr) return (FARPROC16)0;
|
||||||
|
|
Loading…
Reference in a new issue