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

Alexandre Julliard julliard at winehq.org
Thu Oct 21 16:04:17 CDT 2021


Module: wine
Branch: master
Commit: 6cedb963e8b0951cd35d0af5e93d18185ede2421
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6cedb963e8b0951cd35d0af5e93d18185ede2421

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Oct 21 14:23:59 2021 +0200

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

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/setupapi/fakedll.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/setupapi/fakedll.c b/dlls/setupapi/fakedll.c
index 203d7c393ce..8ff29fb4f92 100644
--- a/dlls/setupapi/fakedll.c
+++ b/dlls/setupapi/fakedll.c
@@ -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;
     }




More information about the wine-cvs mailing list