Commit 6cedb963 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 5a8f7d1f
...@@ -253,7 +253,8 @@ static int read_file( const WCHAR *name, void **data, SIZE_T *size ) ...@@ -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) st.st_size - header_size ) == st.st_size - header_size)
{ {
*data = file_buffer; *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 ); extract_16bit_image( nt, data, size );
ret = 1; ret = 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment