Author: post
Date: 2011-12-30 23:13:17 +0100 (Fri, 30 Dec 2011)
New Revision: 4086
Modified:
trunk/plugins/load-dcraw/dcraw_api.cc
Log:
Be sure to return an error if dcraw cannot decode the image.
Modified: trunk/plugins/load-dcraw/dcraw_api.cc
===================================================================
--- trunk/plugins/load-dcraw/dcraw_api.cc 2011-12-30 20:12:44 UTC (rev
4085)
+++ trunk/plugins/load-dcraw/dcraw_api.cc 2011-12-30 22:13:17 UTC (rev
4086)
@@ -79,9 +79,8 @@
d->ifname_display);
fclose(d->ifp);
h->message = d->messageBuffer;
- int lastStatus = d->lastStatus;
delete d;
- return lastStatus;
+ return DCRAW_OPEN_ERROR;
}
/* Next we check if dcraw can decode the file */
if (!d->is_raw) {
@@ -89,9 +88,8 @@
d->ifname_display);
fclose(d->ifp);
h->message = d->messageBuffer;
- int lastStatus = d->lastStatus;
delete d;
- return lastStatus;
+ return DCRAW_OPEN_ERROR;
}
if (d->load_raw == &DCRaw::kodak_ycbcr_load_raw) {
d->height += d->height & 1;
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit