From a5fe8a1e87b4e4f75d148fd97f3483ce03d2f777 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 17 Feb 2015 16:11:27 -0500 Subject: [PATCH] ecore-drm: Fix issue of checking improper eldbus message for errors Summary: When we send_and_block, we should be checking the 'reply' for errors, not the original message which was sent. @fix Signed-off-by: Chris Michael --- src/lib/ecore_drm/ecore_drm_dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_drm/ecore_drm_dbus.c b/src/lib/ecore_drm/ecore_drm_dbus.c index a39770d..558a820 100644 --- a/src/lib/ecore_drm/ecore_drm_dbus.c +++ b/src/lib/ecore_drm/ecore_drm_dbus.c @@ -285,7 +285,7 @@ _ecore_drm_dbus_device_take_no_pending(uint32_t major, uint32_t minor, Eina_Bool return -1; reply = eldbus_proxy_send_and_block(proxy, msg, timeout); - if (eldbus_message_error_get(msg, &errname, &errmsg)) + if (eldbus_message_error_get(reply, &errname, &errmsg)) { ERR("Eldbus Message Error: %s %s", errname, errmsg); return -1; -- 2.7.4