[PATCH 0/1] MR10979: winebth.sys: Return the correct boolean value in bluez_gatt_characteristic_props_from_dict_entry.
From: Vibhav Pant <vibhavp@gmail.com> --- dlls/winebth.sys/dbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winebth.sys/dbus.c b/dlls/winebth.sys/dbus.c index a1438331095..4b980bb5348 100644 --- a/dlls/winebth.sys/dbus.c +++ b/dlls/winebth.sys/dbus.c @@ -964,7 +964,7 @@ bluez_gatt_characteristic_props_from_dict_entry( DBusMessage *msg, const char *p const char *path; p_dbus_message_iter_get_basic( variant, &path ); - return !(chrc->service.handle = (UINT_PTR)unix_name_get_or_create( path )); + return !!(chrc->service.handle = (UINT_PTR)unix_name_get_or_create( path )); } else if (!strcmp( prop_name, "UUID" ) && p_dbus_message_iter_get_arg_type( variant ) == DBUS_TYPE_STRING) @@ -2017,7 +2017,7 @@ static BOOL bluez_handle_new_object( DBusMessage *msg, const char *path, DBusMes if (!(event.device_added.radio.handle = (UINT_PTR)unix_name_get_or_create( path ))) { oom = TRUE; - break; + goto done; } } else -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10979
participants (2)
-
Vibhav Pant -
Vibhav Pant (@vibhavp)