winebuild: Always use DllMain as entry point for the 32-bit side of a 16-bit module.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49559
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-08-03 11:44:33 +02:00
parent dc199ae8b8
commit cff04b34ac
2 changed files with 2 additions and 0 deletions

View File

@ -475,6 +475,7 @@ static int has_stubs( const DLLSPEC *spec )
static void add_extra_undef_symbols( DLLSPEC *spec )
{
add_extra_ld_symbol( spec->init_func );
if (spec->type == SPEC_WIN16) add_extra_ld_symbol( "DllMain" );
if (has_stubs( spec )) add_extra_ld_symbol( "__wine_spec_unimplemented_stub" );
if (delayed_imports.count) add_extra_ld_symbol( "__wine_spec_delay_load" );
}

View File

@ -836,6 +836,7 @@ void add_16bit_exports( DLLSPEC *spec32, DLLSPEC *spec16 )
spec32->file_name = xstrdup( spec16->file_name );
spec32->characteristics = IMAGE_FILE_DLL;
spec32->init_func = xstrdup( "DllMain" );
/* add an export for the NE module */