summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-02-17 16:11:27 -0500
committerChris Michael <cp.michael@samsung.com>2015-02-17 16:19:55 -0500
commita5fe8a1e87b4e4f75d148fd97f3483ce03d2f777 (patch)
tree5a14c5dff001d0ebf677cfa0f745db2e7b318d61 /src/lib/ecore_drm
parent4aeb8a4e7dcbc79207535c49b3766aea4ea86f79 (diff)
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 <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/ecore_drm_dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_dbus.c b/src/lib/ecore_drm/ecore_drm_dbus.c
index a39770df2f..558a820a31 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
285 return -1; 285 return -1;
286 286
287 reply = eldbus_proxy_send_and_block(proxy, msg, timeout); 287 reply = eldbus_proxy_send_and_block(proxy, msg, timeout);
288 if (eldbus_message_error_get(msg, &errname, &errmsg)) 288 if (eldbus_message_error_get(reply, &errname, &errmsg))
289 { 289 {
290 ERR("Eldbus Message Error: %s %s", errname, errmsg); 290 ERR("Eldbus Message Error: %s %s", errname, errmsg);
291 return -1; 291 return -1;