krnl386: GetCodeHandle returns a DWORD.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
16943efa70
commit
3b6af70734
|
@ -94,7 +94,7 @@
|
|||
90 pascal -ret16 lstrlen(str) lstrlen16
|
||||
91 pascal -register InitTask() InitTask16
|
||||
92 pascal GetTempDrive(word) GetTempDrive
|
||||
93 pascal -ret16 GetCodeHandle(segptr) GetCodeHandle16
|
||||
93 pascal GetCodeHandle(segptr) GetCodeHandle16
|
||||
94 pascal -ret16 DefineHandleTable(word) DefineHandleTable16
|
||||
95 pascal -ret16 LoadLibrary(str) LoadLibrary16
|
||||
96 pascal -ret16 FreeLibrary(word) FreeLibrary16
|
||||
|
|
|
@ -984,14 +984,14 @@ static BOOL TASK_GetCodeSegment( FARPROC16 proc, NE_MODULE **ppModule,
|
|||
/**********************************************************************
|
||||
* GetCodeHandle (KERNEL.93)
|
||||
*/
|
||||
HANDLE16 WINAPI GetCodeHandle16( FARPROC16 proc )
|
||||
DWORD WINAPI GetCodeHandle16( FARPROC16 proc )
|
||||
{
|
||||
SEGTABLEENTRY *pSeg;
|
||||
|
||||
if ( !TASK_GetCodeSegment( proc, NULL, &pSeg, NULL ) )
|
||||
return 0;
|
||||
|
||||
return pSeg->hSeg;
|
||||
return MAKELONG( pSeg->hSeg, GlobalHandleToSel16(pSeg->hSeg) );
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
|
|
|
@ -357,7 +357,7 @@ VOID WINAPI FarSetOwner16(HGLOBAL16,HANDLE16);
|
|||
FARPROC16 WINAPI FileCDR16(FARPROC16);
|
||||
WORD WINAPI FreeSelector16(WORD);
|
||||
HANDLE16 WINAPI GetAtomHandle16(ATOM);
|
||||
HANDLE16 WINAPI GetCodeHandle16(FARPROC16);
|
||||
DWORD WINAPI GetCodeHandle16(FARPROC16);
|
||||
BOOL16 WINAPI GetCodeInfo16(FARPROC16,SEGINFO*);
|
||||
DWORD WINAPI GetCurrentPDB16(void);
|
||||
HTASK16 WINAPI GetCurrentTask(void);
|
||||
|
|
Loading…
Reference in New Issue