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:
parent
bf5893f489
commit
48cccee394
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue