summaryrefslogtreecommitdiffstats
path: root/src/multimedia/audio/qaudiooutput_win32_p.cpp
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 /src/multimedia/audio/qaudiooutput_win32_p.cpp
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
Diffstat (limited to 'src/multimedia/audio/qaudiooutput_win32_p.cpp')
-rw-r--r--src/multimedia/audio/qaudiooutput_win32_p.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}