]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_dma.c
Removed a few warnings when compiling with MinGW
[xonotic/darkplaces.git] / snd_dma.c
index 2faf2967a4555e53d1c7225722c831b1de19978d..9035546ae72f7f5e18dbb6c8b9e9b32b4843813c 100644 (file)
--- 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)
                        {