From 414e1c8ad5f5c39ef7caa71f5ff8f7735cf91d1a Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 17 Nov 2021 14:57:08 +0100 Subject: [PATCH] winebuild: Avoid resolving standard C functions with static importlibs. Signed-off-by: Alexandre Julliard --- tools/winebuild/import.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index 8e285b19872..ab15e01b53c 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c @@ -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 );