ptp_find_objecrt returns PTP_RC_OK on success

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14209 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2013-01-27 19:30:26 +00:00
parent 1ab42867f4
commit 02e47ddea8

View File

@@ -3258,7 +3258,7 @@ camera_wait_for_event (Camera *camera, int timeout,
goto downloadnow;
/* if we have the object already loaded, no need to add it here */
if (ptp_object_find(params, event.Param1, &ob))
if (PTP_RC_OK == ptp_object_find(params, event.Param1, &ob))
continue;
path = (CameraFilePath *)malloc(sizeof(CameraFilePath));