setupapi: Try to extract 16-bit image also from .fake files.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-10-21 14:23:59 +02:00
parent 5a8f7d1f74
commit 6cedb963e8
1 changed files with 2 additions and 1 deletions

View File

@ -253,7 +253,8 @@ static int read_file( const WCHAR *name, void **data, SIZE_T *size )
st.st_size - header_size ) == st.st_size - header_size)
{
*data = file_buffer;
if (lstrlenW(name) > 2 && !wcscmp( name + lstrlenW(name) - 2, L"16" ))
if ((lstrlenW(name) > 2 && !wcscmp( name + lstrlenW(name) - 2, L"16" )) ||
(lstrlenW(name) > 7 && !wcscmp( name + lstrlenW(name) - 7, L"16.fake" )))
extract_16bit_image( nt, data, size );
ret = 1;
}