(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
This commit is contained in:
@@ -18,7 +18,7 @@ static void PrepareHeader(WAVEHDR *hdr)
|
||||
{
|
||||
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");
|
||||
|
Reference in New Issue
Block a user