[misc] pocketful of enhancement and fixes - part 5

* Check compressed DD images for boot capability
* Add DisableLGP setting
* Silence libcdio errors when scanning non ISO images
* Ensure UI displays "No image selected" when relevant
* Also update Bled to latest
This commit is contained in:
Pete Batard 2015-02-11 23:22:18 +00:00
parent 63bb91493a
commit 818fa4da88
18 changed files with 156 additions and 70 deletions

View file

@ -1003,8 +1003,9 @@ inflate_unzip_internal(STATE_PARAM transformer_state_t *xstate)
while (1) {
int r = inflate_get_next_window(PASS_STATE_ONLY);
nwrote = transformer_write(xstate, gunzip_window, gunzip_outbuf_count);
if (nwrote == (ssize_t)-1) {
n = -1;
if (nwrote != (ssize_t)gunzip_outbuf_count) {
huft_free_all(PASS_STATE_ONLY);
n = (nwrote <0)?nwrote:-1;
goto ret;
}
IF_DESKTOP(n += nwrote;)
@ -1226,7 +1227,7 @@ unpack_gz_stream(transformer_state_t *xstate)
n = inflate_unzip_internal(PASS_STATE xstate);
if (n < 0) {
total = -1;
total = (n == -ENOSPC)?xstate->mem_output_size_max:n;
goto ret;
}
total += n;