aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2008-12-31 13:00:09 +0000
committerFilippos Karapetis2008-12-31 13:00:09 +0000
commit136390a5407eaf3a7ee24ce9e78d7aa3bb3e6a3f (patch)
tree7b49506c4845939ec285cb0799380aa079b9e575
parentcae6bdac08b9deefe269c59b0d6455df8351876c (diff)
downloadscummvm-rg350-136390a5407eaf3a7ee24ce9e78d7aa3bb3e6a3f.tar.gz
scummvm-rg350-136390a5407eaf3a7ee24ce9e78d7aa3bb3e6a3f.tar.bz2
scummvm-rg350-136390a5407eaf3a7ee24ce9e78d7aa3bb3e6a3f.zip
Commented out part of the code that corrupts the heap for me
svn-id: r35627
-rw-r--r--sound/shorten.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/shorten.cpp b/sound/shorten.cpp
index 0a826a5edc..515f62dc6f 100644
--- a/sound/shorten.cpp
+++ b/sound/shorten.cpp
@@ -393,8 +393,9 @@ byte *loadShortenFromStream(Common::ReadStream &stream, int &size, int &rate, by
// Do the wrap
- for (i = -wrap; i < 0; i++)
- buffer[curChannel][i] = buffer[curChannel][i + blockSize];
+ // FIXME: removed for now, as this corrupts the heap
+ //for (int32 k = -wrap; k < 0; k++)
+ // buffer[curChannel][k] = buffer[curChannel][k + blockSize];
// Fix bitshift
if (bitShift > 0) {