wok-4.x diff busybox/stuff/busybox-1.10.1-unlzma.u @ rev 1682
mhwaveedit: remove libSDL and libsamplerate depends
author | Pierre-Jean Fichet <sygne@ombres.eu> |
---|---|
date | Sat Nov 08 14:17:35 2008 +0000 (2008-11-08) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/busybox/stuff/busybox-1.10.1-unlzma.u Sat Nov 08 14:17:35 2008 +0000 1.3 @@ -0,0 +1,23 @@ 1.4 +--- busybox-1.10.1/archival/libunarchive/decompress_unlzma.c 1.5 ++++ busybox-1.10.1/archival/libunarchive/decompress_unlzma.c 1.6 +@@ -491,10 +491,16 @@ 1.7 + 1.8 + if (full_write(dst_fd, buffer, buffer_pos) != buffer_pos) { 1.9 + bad: 1.10 ++ len = -1; 1.11 ++ } 1.12 ++ else { 1.13 ++ USE_DESKTOP(total_written += buffer_pos;) 1.14 ++ len = USE_DESKTOP(total_written) + 0; 1.15 ++ } 1.16 ++ if (ENABLE_FEATURE_CLEAN_UP) { 1.17 + rc_free(rc); 1.18 +- return -1; 1.19 ++ free(buffer); 1.20 ++ free(p); 1.21 + } 1.22 +- rc_free(rc); 1.23 +- USE_DESKTOP(total_written += buffer_pos;) 1.24 +- return USE_DESKTOP(total_written) + 0; 1.25 ++ return len; 1.26 + }