krnl386: GetCodeHandle returns a DWORD.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2018-02-23 19:23:44 +01:00
parent 16943efa70
commit 3b6af70734
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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) );
}
/**********************************************************************

View File

@ -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);