mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 14:30:21 +00:00
Bug fixes.
This commit is contained in:
parent
64ae5a57cf
commit
481a8e263c
|
@ -864,6 +864,10 @@ HINSTANCE WINAPI LoadModule( LPCSTR name, LPVOID paramBlock )
|
|||
pdb = PROCESS_IdToPDB( info.dwProcessId );
|
||||
tdb = pdb? (TDB *)GlobalLock16( pdb->task ) : NULL;
|
||||
hInstance = tdb && tdb->hInstance? tdb->hInstance : pdb? pdb->task : 0;
|
||||
/* If there is no hInstance (32-bit process) return a dummy value
|
||||
* that must be > 31
|
||||
* FIXME: should do this in all cases and fix Win16 callers */
|
||||
if (!hInstance) hInstance = 33;
|
||||
|
||||
/* Close off the handles */
|
||||
CloseHandle( info.hThread );
|
||||
|
|
|
@ -411,7 +411,7 @@ BOOL TASK_Create( THDB *thdb, NE_MODULE *pModule, HINSTANCE16 hInstance,
|
|||
pTask->thdb->teb.htask16 = pTask->thdb->process->task = hTask;
|
||||
TRACE_(task)("module='%s' cmdline='%s' task=%04x\n", name, cmd_line, hTask );
|
||||
|
||||
if (pTask->flags & TDBF_WIN32) return;
|
||||
if (pTask->flags & TDBF_WIN32) return TRUE;
|
||||
|
||||
/* If we have a DGROUP/hInstance, use it for 16-bit stack */
|
||||
|
||||
|
|
Loading…
Reference in a new issue