winebuild: Find WinMain/wWinMain in static libraries.

Signed-off-by: Kevin Puetz <PuetzKevinA@JohnDeere.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Kevin Puetz 2020-11-25 13:00:28 -06:00 committed by Alexandre Julliard
parent bf5893f489
commit 48cccee394
1 changed files with 4 additions and 0 deletions

View File

@ -405,12 +405,16 @@ static const char *get_default_entry_point( const DLLSPEC *spec )
{
/* __wine_spec_exe_wentry always calls wmain */
add_spec_extra_ld_symbol("wmain");
if (spec->subsystem == IMAGE_SUBSYSTEM_WINDOWS_GUI)
add_spec_extra_ld_symbol("wWinMain");
return "__wine_spec_exe_wentry";
}
else
{
/* __wine_spec_exe_entry always calls main */
add_spec_extra_ld_symbol("main");
if (spec->subsystem == IMAGE_SUBSYSTEM_WINDOWS_GUI)
add_spec_extra_ld_symbol("WinMain");
return "__wine_spec_exe_entry";
}
}