diff options
Diffstat (limited to 'libgphoto2/gphoto2-filesys.c')
-rw-r--r-- | libgphoto2/gphoto2-filesys.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libgphoto2/gphoto2-filesys.c b/libgphoto2/gphoto2-filesys.c index 4d64550e8..5d364a133 100644 --- a/libgphoto2/gphoto2-filesys.c +++ b/libgphoto2/gphoto2-filesys.c @@ -1780,8 +1780,10 @@ gp_filesystem_read_file (CameraFilesystem *fs, const char *folder, offset, buf, size, fs->data, context); if (r == GP_OK) return r; + } else { + return GP_ERROR_NOT_SUPPORTED; } - return GP_ERROR_NOT_SUPPORTED; + return r; /* fallback code */ CR (gp_file_new (&file)); CR (gp_filesystem_get_file (fs, folder, filename, type, |