diff options
Diffstat (limited to 'src/sound/win32_s.cpp')
-rw-r--r-- | src/sound/win32_s.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sound/win32_s.cpp b/src/sound/win32_s.cpp index 1bb0e9d53..3a5419495 100644 --- a/src/sound/win32_s.cpp +++ b/src/sound/win32_s.cpp @@ -22,8 +22,7 @@ static void PrepareHeader(WAVEHDR *hdr) hdr->dwBufferLength = _bufsize * 4; hdr->dwFlags = 0; hdr->lpData = MallocT<char>(_bufsize * 4); - if (hdr->lpData == NULL || - waveOutPrepareHeader(_waveout, hdr, sizeof(WAVEHDR)) != MMSYSERR_NOERROR) + if (waveOutPrepareHeader(_waveout, hdr, sizeof(WAVEHDR)) != MMSYSERR_NOERROR) usererror("waveOutPrepareHeader failed"); } |