WPROCS.ENTRYADDRPROC needs to return something in CX too (fixes

BLINKER selfextracting executables).
This commit is contained in:
Marcus Meissner 1999-10-13 15:46:10 +00:00 committed by Alexandre Julliard
parent 3336f48565
commit 142d94e5b0
2 changed files with 7 additions and 1 deletions

View file

@ -2,7 +2,7 @@ name wprocs
type win16
23 pascal UTGlue16(ptr long ptr long) UTGlue16
27 pascal EntryAddrProc(word word) NE_GetEntryPoint
27 pascal EntryAddrProc(word word) WIN16_NE_GetEntryPoint
28 pascal MyAlloc(word word word) NE_AllocateSegment
# Interrupt vectors 0-255 are ordinals 100-355

View file

@ -285,6 +285,12 @@ WORD NE_GetOrdinal( HMODULE16 hModule, const char *name )
*
* Return the entry point for a given ordinal.
*/
FARPROC16 WINAPI WIN16_NE_GetEntryPoint( HMODULE16 hModule, WORD ordinal )
{
FARPROC16 ret = NE_GetEntryPointEx( hModule, ordinal, TRUE );
CURRENT_STACK16->ecx = hModule; /* FIXME: might be incorrect value */
return ret;
}
FARPROC16 WINAPI NE_GetEntryPoint( HMODULE16 hModule, WORD ordinal )
{
return NE_GetEntryPointEx( hModule, ordinal, TRUE );