winebuild: Avoid resolving standard C functions with static importlibs.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-11-17 14:57:08 +01:00
parent a7074ea2a3
commit 414e1c8ad5
1 changed files with 2 additions and 0 deletions

View File

@ -492,6 +492,8 @@ static void add_undef_import( const char *name, int is_ordinal )
while (*name >= '0' && *name <= '9') ordinal = 10 * ordinal + *name++ - '0';
if (*name++ != '$') return;
if (!use_msvcrt && find_name( name, stdc_functions )) return;
import = add_static_import_dll( dll_name );
if (is_ordinal)
add_import_func( import, NULL, xstrdup( name ), ordinal, 0 );