summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2013-01-27 19:30:26 +0000
committerMarcus Meissner <marcus@jet.franken.de>2013-01-27 19:30:26 +0000
commit02e47ddea8bfc0a971f593f83ed8b1bcd6d5c3fd (patch)
treeb8258dcc7864c401f453923764d83ba889821e91
parent1ab42867f4e0d0dfa78f35fc40ab31f356384557 (diff)
downloadlibgphoto2-02e47ddea8bfc0a971f593f83ed8b1bcd6d5c3fd.tar.gz
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
-rw-r--r--camlibs/ptp2/library.c2
1 files changed, 1 insertions, 1 deletions
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));