ecore-x - handle prop get fail for xdnd type set

fix CID 1039693
This commit is contained in:
Carsten Haitzler 2014-08-27 16:33:06 +09:00
parent 8762004bf1
commit f8e036d5af
1 changed files with 3 additions and 2 deletions

View File

@ -264,8 +264,9 @@ ecore_x_dnd_type_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
atom = ecore_x_atom_get(type);
ecore_x_window_prop_property_get(win, ECORE_X_ATOM_XDND_TYPE_LIST,
XA_ATOM, 32, &old_data, &num);
if (ecore_x_window_prop_property_get(win, ECORE_X_ATOM_XDND_TYPE_LIST,
XA_ATOM, 32, &old_data, &num) == 0)
return;
oldset = (Ecore_X_Atom *)old_data;
LOGFN(__FILE__, __LINE__, __FUNCTION__);