summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2010-07-02 00:12:47 (GMT)
committerKurt Korbatits <kurt.korbatits@nokia.com>2010-07-02 00:12:47 (GMT)
commit6d5e561be6f013f7cb5c77e15ee6b7640cad7563 (patch)
treecbe43b7bc41a6b083f05cdfcbf93b52de7b5b709
parent574e0e970abef087bc0b4040514cb1393b24e315 (diff)
downloadQt-6d5e561be6f013f7cb5c77e15ee6b7640cad7563.zip
Qt-6d5e561be6f013f7cb5c77e15ee6b7640cad7563.tar.gz
Qt-6d5e561be6f013f7cb5c77e15ee6b7640cad7563.tar.bz2
Segmentation Fault in QAudioOutputPrivate::freeBlocks() caused by wrong
pointer increment Task-number:QTBUG-11883 Reviewed-by:Andrew den Exter
-rw-r--r--src/multimedia/audio/qaudioinput_win32_p.cpp2
-rw-r--r--src/multimedia/audio/qaudiooutput_win32_p.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/multimedia/audio/qaudioinput_win32_p.cpp b/src/multimedia/audio/qaudioinput_win32_p.cpp
index 8240047..3f6e778 100644
--- a/src/multimedia/audio/qaudioinput_win32_p.cpp
+++ b/src/multimedia/audio/qaudioinput_win32_p.cpp
@@ -148,7 +148,7 @@ void QAudioInputPrivate::freeBlocks(WAVEHDR* blockArray)
for(int i = 0; i < count; i++) {
waveInUnprepareHeader(hWaveIn,blocks, sizeof(WAVEHDR));
- blocks+=sizeof(WAVEHDR);
+ blocks++;
}
HeapFree(GetProcessHeap(), 0, blockArray);
}
diff --git a/src/multimedia/audio/qaudiooutput_win32_p.cpp b/src/multimedia/audio/qaudiooutput_win32_p.cpp
index 075d100..09771b3 100644
--- a/src/multimedia/audio/qaudiooutput_win32_p.cpp
+++ b/src/multimedia/audio/qaudiooutput_win32_p.cpp
@@ -193,7 +193,7 @@ void QAudioOutputPrivate::freeBlocks(WAVEHDR* blockArray)
for(int i = 0; i < count; i++) {
waveOutUnprepareHeader(hWaveOut,blocks, sizeof(WAVEHDR));
- blocks+=sizeof(WAVEHDR);
+ blocks++;
}
HeapFree(GetProcessHeap(), 0, blockArray);
}