Commit 3b6af707 authored by Alexandre Julliard's avatar Alexandre Julliard

krnl386: GetCodeHandle returns a DWORD.

parent 16943efa
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
90 pascal -ret16 lstrlen(str) lstrlen16 90 pascal -ret16 lstrlen(str) lstrlen16
91 pascal -register InitTask() InitTask16 91 pascal -register InitTask() InitTask16
92 pascal GetTempDrive(word) GetTempDrive 92 pascal GetTempDrive(word) GetTempDrive
93 pascal -ret16 GetCodeHandle(segptr) GetCodeHandle16 93 pascal GetCodeHandle(segptr) GetCodeHandle16
94 pascal -ret16 DefineHandleTable(word) DefineHandleTable16 94 pascal -ret16 DefineHandleTable(word) DefineHandleTable16
95 pascal -ret16 LoadLibrary(str) LoadLibrary16 95 pascal -ret16 LoadLibrary(str) LoadLibrary16
96 pascal -ret16 FreeLibrary(word) FreeLibrary16 96 pascal -ret16 FreeLibrary(word) FreeLibrary16
......
...@@ -984,14 +984,14 @@ static BOOL TASK_GetCodeSegment( FARPROC16 proc, NE_MODULE **ppModule, ...@@ -984,14 +984,14 @@ static BOOL TASK_GetCodeSegment( FARPROC16 proc, NE_MODULE **ppModule,
/********************************************************************** /**********************************************************************
* GetCodeHandle (KERNEL.93) * GetCodeHandle (KERNEL.93)
*/ */
HANDLE16 WINAPI GetCodeHandle16( FARPROC16 proc ) DWORD WINAPI GetCodeHandle16( FARPROC16 proc )
{ {
SEGTABLEENTRY *pSeg; SEGTABLEENTRY *pSeg;
if ( !TASK_GetCodeSegment( proc, NULL, &pSeg, NULL ) ) if ( !TASK_GetCodeSegment( proc, NULL, &pSeg, NULL ) )
return 0; return 0;
return pSeg->hSeg; return MAKELONG( pSeg->hSeg, GlobalHandleToSel16(pSeg->hSeg) );
} }
/********************************************************************** /**********************************************************************
......
...@@ -357,7 +357,7 @@ VOID WINAPI FarSetOwner16(HGLOBAL16,HANDLE16); ...@@ -357,7 +357,7 @@ VOID WINAPI FarSetOwner16(HGLOBAL16,HANDLE16);
FARPROC16 WINAPI FileCDR16(FARPROC16); FARPROC16 WINAPI FileCDR16(FARPROC16);
WORD WINAPI FreeSelector16(WORD); WORD WINAPI FreeSelector16(WORD);
HANDLE16 WINAPI GetAtomHandle16(ATOM); HANDLE16 WINAPI GetAtomHandle16(ATOM);
HANDLE16 WINAPI GetCodeHandle16(FARPROC16); DWORD WINAPI GetCodeHandle16(FARPROC16);
BOOL16 WINAPI GetCodeInfo16(FARPROC16,SEGINFO*); BOOL16 WINAPI GetCodeInfo16(FARPROC16,SEGINFO*);
DWORD WINAPI GetCurrentPDB16(void); DWORD WINAPI GetCurrentPDB16(void);
HTASK16 WINAPI GetCurrentTask(void); HTASK16 WINAPI GetCurrentTask(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment