From 00539518470ca25f1236be8a4373a2d5b7f6144d Mon Sep 17 00:00:00 2001 From: Ben Govero Date: Tue, 29 Jun 2021 17:03:42 -0500 Subject: [PATCH] Fixed an error check on _set_config When updating multiple settings at the same time, this continue was allowing an early failure to be ignored (if the next setting returned GP_OK) --- camlibs/ptp2/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c index 7c9efb5952..f2257b8551 100644 --- a/camlibs/ptp2/config.c +++ b/camlibs/ptp2/config.c @@ -11096,7 +11096,7 @@ _set_config (Camera *camera, const char *confname, CameraWidget *window, GPConte ptp_free_devicepropvalue (cursub->type, &propval); } ptp_free_devicepropdesc(&dpd); - if (ret != GP_OK) continue; /* see if we have another match */ + if (ret == GP_OK) continue; /* see if we have another match */ } else { ret = cursub->putfunc (camera, widget, NULL, NULL); }