From 02e47ddea8bfc0a971f593f83ed8b1bcd6d5c3fd Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 27 Jan 2013 19:30:26 +0000 Subject: [PATCH] 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 --- camlibs/ptp2/library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index 8019f33da..dbde236b5 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -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));