Rémi Bernon : hidparse.sys: Ignore unknown item types, rather than failing.

Alexandre Julliard julliard at winehq.org
Wed Oct 13 15:59:27 CDT 2021


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

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Tue Oct 12 10:00:25 2021 +0200

hidparse.sys: Ignore unknown item types, rather than failing.

Some DS4 controllers have a trailing NUL byte when accessed over
bluetooth. This causes parse_descriptor to return an error where we can
instead ignore it.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/hidparse.sys/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/hidparse.sys/main.c b/dlls/hidparse.sys/main.c
index 18ee23974f0..d455049d9b1 100644
--- a/dlls/hidparse.sys/main.c
+++ b/dlls/hidparse.sys/main.c
@@ -628,7 +628,7 @@ struct hid_preparsed_data *parse_descriptor( BYTE *descriptor, unsigned int leng
 
         default:
             FIXME( "item type %x not implemented!\n", *ptr );
-            goto done;
+            break;
         }
 #undef SHORT_ITEM
     }




More information about the wine-cvs mailing list