Module: wine Branch: master Commit: 6a4e0d60fa8a5e955dda7a536da6cade05cf79c7 URL: https://gitlab.winehq.org/wine/wine/-/commit/6a4e0d60fa8a5e955dda7a536da6cad...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Dec 2 10:36:03 2022 +0100
setupapi: Fix wildcard matching for fakedlls inside the build dir.
To avoid *.sys matching windows.system.profile.systemmanufacturers.dll.
---
dlls/setupapi/fakedll.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/setupapi/fakedll.c b/dlls/setupapi/fakedll.c index 6a5a566278b..7f4d7367285 100644 --- a/dlls/setupapi/fakedll.c +++ b/dlls/setupapi/fakedll.c @@ -989,6 +989,8 @@ static void install_lib_dir( WCHAR *dest, WCHAR *file, const WCHAR *wildcard, lstrcatW( name, data.name ); if (wcschr( data.name, '.' ) && install_fake_dll( dest, file, delete, &delay_copy )) continue; + if (wcschr( wildcard, '.' )) /* don't append default if wildcard has an explicit extension */ + continue; lstrcatW( name, default_ext ); } install_fake_dll( dest, file, delete, &delay_copy );