From d73c1fa7bfed01a187e14c4d86cde70e7121c51b Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 24 Feb 2009 20:59:17 +0000 Subject: (svn r15568) -Cleanup: *allocT/AllocaM doesn't return NULL when allocating fails --- src/sound/win32_s.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/sound') 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(_bufsize * 4); - if (hdr->lpData == NULL || - waveOutPrepareHeader(_waveout, hdr, sizeof(WAVEHDR)) != MMSYSERR_NOERROR) + if (waveOutPrepareHeader(_waveout, hdr, sizeof(WAVEHDR)) != MMSYSERR_NOERROR) usererror("waveOutPrepareHeader failed"); } -- cgit v1.2.3-70-g09d2