wok-6.x diff linld/stuff/src/ISO9660.CPP @ rev 20751

Add libsbc
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 12 12:12:36 2019 +0100 (2019-02-12)
parents 6f2188ee6be5
children 66530154b12f
line diff
     1.1 --- a/linld/stuff/src/ISO9660.CPP	Sun Feb 10 12:08:41 2019 +0100
     1.2 +++ b/linld/stuff/src/ISO9660.CPP	Tue Feb 12 12:12:36 2019 +0100
     1.3 @@ -68,14 +68,17 @@
     1.4  	p = x->buffer + 34 + ((p[32] + x->curpos) & -2);
     1.5  	do {
     1.6  		int len = p[2];
     1.7 +# if 0
     1.8  		switch (* (short *) p) {
     1.9 -		case 0x4D4E: // NM
    1.10 -			x->filename = p + 5;
    1.11 -			endname = p + len;
    1.12 -			break;
    1.13  		case 0x5850: // PX
    1.14  			x->filemod = * (short *) (p + 4);
    1.15  			break;
    1.16 +		case 0x4D4E: // NM
    1.17 +# else
    1.18 +		if (* (short *) p == 0x4D4E) {
    1.19 +# endif
    1.20 +			x->filename = p + 5;
    1.21 +			endname = p + len;
    1.22  		}
    1.23  		p += len;
    1.24  	} while (x->buffer + x->curpos + size - p > 2);
    1.25 @@ -119,7 +122,8 @@
    1.26  		isoreset(NULL);
    1.27  	}
    1.28    next:
    1.29 -	for (name = s; *s && *s != '/'; s++);
    1.30 +	name = s;
    1.31 +	do s++; while (*s != '/' && *s);
    1.32  	c = *s;
    1.33  	*s = 0;
    1.34  	for (x->curdirsize = 0xFFFF; isoreaddir() == 0;) {