changeset 5860 | 7fdc9b423ba1 |
parent 5838 | 9c3129cb019b |
child 6253 | 23983700e3d7 |
--- a/src/sound/win32_s.cpp Thu Jan 11 15:30:35 2007 +0000 +++ b/src/sound/win32_s.cpp Thu Jan 11 17:29:39 2007 +0000 @@ -18,7 +18,7 @@ { hdr->dwBufferLength = _bufsize * 4; hdr->dwFlags = 0; - MallocT(&hdr->lpData, _bufsize * 4); + hdr->lpData = MallocT<char>(_bufsize * 4); if (hdr->lpData == NULL || waveOutPrepareHeader(_waveout, hdr, sizeof(WAVEHDR)) != MMSYSERR_NOERROR) error("waveOutPrepareHeader failed");