ecore-drm: Fix issue of checking improper eldbus message for errors
authorChris Michael <cp.michael@samsung.com>
Tue, 17 Feb 2015 21:11:27 +0000 (16:11 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 17 Feb 2015 21:19:55 +0000 (16:19 -0500)
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>
src/lib/ecore_drm/ecore_drm_dbus.c

index a39770d..558a820 100644 (file)
@@ -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;