fix problems parsing old WXME files
svn: r15684 original commit: d1bd8a7a4025eff53147e32670bba0ee5d462d1a
This commit is contained in:
parent
fc3ccde0b4
commit
32d969d83d
|
@ -517,10 +517,10 @@
|
||||||
(fail))]
|
(fail))]
|
||||||
[(positive? (bitwise-and b #x02))
|
[(positive? (bitwise-and b #x02))
|
||||||
(if (= 2 (send f read-bytes buf 0 2))
|
(if (= 2 (send f read-bytes buf 0 2))
|
||||||
(integer-bytes->integer b #t #t)
|
(integer-bytes->integer buf #t #t 0 2)
|
||||||
(fail))]
|
(fail))]
|
||||||
[else
|
[else
|
||||||
(if (= 4 (send f read-bytes buf 0 2))
|
(if (= 4 (send f read-bytes buf 0 4))
|
||||||
(integer-bytes->integer buf #t #t)
|
(integer-bytes->integer buf #t #t)
|
||||||
(fail))])
|
(fail))])
|
||||||
(if (= 1 (send f read-bytes buf 0 1))
|
(if (= 1 (send f read-bytes buf 0 1))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user