setupapi: Fix wildcard matching for fakedlls inside the build dir.

To avoid *.sys matching windows.system.profile.systemmanufacturers.dll.
This commit is contained in:
Alexandre Julliard 2022-12-02 10:36:03 +01:00
parent 92520c6a1a
commit 6a4e0d60fa

View file

@ -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 );