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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user