Commit 04b01c3a authored by Michael Natterer's avatar Michael Natterer 😴

plug-ins: actually return FALSE if mount_enclosing_volume() fails

parent 74d44ee2
......@@ -157,10 +157,9 @@ uri_backend_map_image (const gchar *uri,
if (! mount_enclosing_volume (file, &error))
{
if (error->domain == G_IO_ERROR &&
error->code == G_IO_ERROR_ALREADY_MOUNTED)
success = TRUE;
if (error->domain != G_IO_ERROR ||
error->code != G_IO_ERROR_ALREADY_MOUNTED)
success = FALSE;
g_error_free (error);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment