From: molivier Date: Mon, 12 Jan 2004 07:33:11 +0000 (+0000) Subject: Removed a few warnings when compiling with MinGW X-Git-Tag: xonotic-v0.1.0preview~6161 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4bae3a8c37a3a08174d6a7b3bf095d408572fdd6;p=xonotic%2Fdarkplaces.git Removed a few warnings when compiling with MinGW git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3804 d7cf8633-e32d-0410-b094-e92efae38249 --- 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) {