From 4bae3a8c37a3a08174d6a7b3bf095d408572fdd6 Mon Sep 17 00:00:00 2001 From: molivier Date: Mon, 12 Jan 2004 07:33:11 +0000 Subject: [PATCH] Removed a few warnings when compiling with MinGW git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3804 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_dma.c | 2 +- snd_win.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/snd_dma.c b/snd_dma.c index 2faf2967..9035546a 100644 --- a/snd_dma.c +++ b/snd_dma.c @@ -583,7 +583,7 @@ void S_ClearBuffer(void) reps = 0; - while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, &pData, &dwSize, NULL, NULL, 0)) != DS_OK) + while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, (LPVOID*)&pData, &dwSize, NULL, NULL, 0)) != DS_OK) { if (hresult != DSERR_BUFFERLOST) { diff --git a/snd_win.c b/snd_win.c index 427f7c66..5434e5db 100644 --- a/snd_win.c +++ b/snd_win.c @@ -367,7 +367,7 @@ sndinitstat SNDDMA_InitDirect (void) // initialize the buffer reps = 0; - while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, &lpData, &dwSize, NULL, NULL, 0)) != DS_OK) + while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, (LPVOID*)&lpData, &dwSize, NULL, NULL, 0)) != DS_OK) { if (hresult != DSERR_BUFFERLOST) { @@ -732,7 +732,7 @@ void *S_LockBuffer(void) { reps = 0; - while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, &dsound_pbuf, &dsound_dwSize, &dsound_pbuf2, &dsound_dwSize2, 0)) != DS_OK) + while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, (LPVOID*)&dsound_pbuf, &dsound_dwSize, (LPVOID*)&dsound_pbuf2, &dsound_dwSize2, 0)) != DS_OK) { if (hresult != DSERR_BUFFERLOST) { -- 2.39.2