twain_32: Ensure FreeLibrary is called on error case (coverity).

This commit is contained in:
Frédéric Delanoy 2013-11-27 13:50:35 +01:00 committed by Alexandre Julliard
parent 17027a60b0
commit 8e262f8736

View File

@ -75,7 +75,7 @@ twain_add_onedriver(const char *dsname) {
ret = dsEntry (&fakeOrigin, DG_CONTROL, DAT_IDENTITY, MSG_GET, &sourceId);
if (ret != TWRC_SUCCESS) {
ERR("Source->(DG_CONTROL,DAT_IDENTITY,MSG_GET) failed!\n");
return;
break;
}
TRACE("Manufacturer: %s\n", debugstr_a(sourceId.Manufacturer));
TRACE("ProductFamily: %s\n", debugstr_a(sourceId.ProductFamily));