]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Removed a few warnings when compiling with MinGW
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jan 2004 07:33:11 +0000 (07:33 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jan 2004 07:33:11 +0000 (07:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3804 d7cf8633-e32d-0410-b094-e92efae38249

snd_dma.c
snd_win.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)
                        {
index 427f7c66e218a1f4fd840a529c5b10727cf5bad9..5434e5dbd29fc180697e71e279c3757fa052623b 100644 (file)
--- 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)
                        {