Skip to content
Snippets Groups Projects
Commit 142d94e5 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

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

BLINKER selfextracting executables).
parent 3336f485
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment