Fixed some warnings.
This commit is contained in:
parent
c5f948c256
commit
6314ad696b
|
@ -316,6 +316,7 @@ static void _dump_DSBCAPS(DWORD xmask) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* IUnknown methods */
|
/* IUnknown methods */
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_QueryInterface(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_QueryInterface(
|
||||||
LPDIRECTSOUND3DBUFFER iface, REFIID riid, LPVOID *ppobj)
|
LPDIRECTSOUND3DBUFFER iface, REFIID riid, LPVOID *ppobj)
|
||||||
{
|
{
|
||||||
|
@ -324,14 +325,18 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_QueryInterface(
|
||||||
TRACE("(%p,%s,%p)\n",This,debugstr_guid(riid),ppobj);
|
TRACE("(%p,%s,%p)\n",This,debugstr_guid(riid),ppobj);
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static ULONG WINAPI IDirectSound3DBufferImpl_AddRef(LPDIRECTSOUND3DBUFFER iface)
|
static ULONG WINAPI IDirectSound3DBufferImpl_AddRef(LPDIRECTSOUND3DBUFFER iface)
|
||||||
{
|
{
|
||||||
ICOM_THIS(IDirectSound3DBufferImpl,iface);
|
ICOM_THIS(IDirectSound3DBufferImpl,iface);
|
||||||
This->ref++;
|
This->ref++;
|
||||||
return This->ref;
|
return This->ref;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static ULONG WINAPI IDirectSound3DBufferImpl_Release(LPDIRECTSOUND3DBUFFER iface)
|
static ULONG WINAPI IDirectSound3DBufferImpl_Release(LPDIRECTSOUND3DBUFFER iface)
|
||||||
{
|
{
|
||||||
ICOM_THIS(IDirectSound3DBufferImpl,iface);
|
ICOM_THIS(IDirectSound3DBufferImpl,iface);
|
||||||
|
@ -351,8 +356,10 @@ static ULONG WINAPI IDirectSound3DBufferImpl_Release(LPDIRECTSOUND3DBUFFER iface
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* IDirectSound3DBuffer methods */
|
/* IDirectSound3DBuffer methods */
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_GetAllParameters(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_GetAllParameters(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
LPDS3DBUFFER lpDs3dBuffer)
|
LPDS3DBUFFER lpDs3dBuffer)
|
||||||
|
@ -360,7 +367,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetAllParameters(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_GetConeAngles(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_GetConeAngles(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
LPDWORD lpdwInsideConeAngle,
|
LPDWORD lpdwInsideConeAngle,
|
||||||
|
@ -369,7 +378,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetConeAngles(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_GetConeOrientation(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_GetConeOrientation(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
LPD3DVECTOR lpvConeOrientation)
|
LPD3DVECTOR lpvConeOrientation)
|
||||||
|
@ -377,7 +388,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetConeOrientation(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_GetConeOutsideVolume(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_GetConeOutsideVolume(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
LPLONG lplConeOutsideVolume)
|
LPLONG lplConeOutsideVolume)
|
||||||
|
@ -385,7 +398,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetConeOutsideVolume(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_GetMaxDistance(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_GetMaxDistance(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
LPD3DVALUE lpfMaxDistance)
|
LPD3DVALUE lpfMaxDistance)
|
||||||
|
@ -393,7 +408,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetMaxDistance(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_GetMinDistance(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_GetMinDistance(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
LPD3DVALUE lpfMinDistance)
|
LPD3DVALUE lpfMinDistance)
|
||||||
|
@ -401,7 +418,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetMinDistance(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_GetMode(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_GetMode(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
LPDWORD lpdwMode)
|
LPDWORD lpdwMode)
|
||||||
|
@ -409,7 +428,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetMode(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_GetPosition(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_GetPosition(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
LPD3DVECTOR lpvPosition)
|
LPD3DVECTOR lpvPosition)
|
||||||
|
@ -417,7 +438,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetPosition(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_GetVelocity(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_GetVelocity(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
LPD3DVECTOR lpvVelocity)
|
LPD3DVECTOR lpvVelocity)
|
||||||
|
@ -425,7 +448,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetVelocity(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_SetAllParameters(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_SetAllParameters(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
LPCDS3DBUFFER lpcDs3dBuffer,
|
LPCDS3DBUFFER lpcDs3dBuffer,
|
||||||
|
@ -434,7 +459,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetAllParameters(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_SetConeAngles(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_SetConeAngles(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
DWORD dwInsideConeAngle,
|
DWORD dwInsideConeAngle,
|
||||||
|
@ -444,7 +471,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetConeAngles(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_SetConeOrientation(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_SetConeOrientation(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
D3DVALUE x, D3DVALUE y, D3DVALUE z,
|
D3DVALUE x, D3DVALUE y, D3DVALUE z,
|
||||||
|
@ -453,7 +482,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetConeOrientation(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_SetConeOutsideVolume(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_SetConeOutsideVolume(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
LONG lConeOutsideVolume,
|
LONG lConeOutsideVolume,
|
||||||
|
@ -462,7 +493,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetConeOutsideVolume(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_SetMaxDistance(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_SetMaxDistance(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
D3DVALUE fMaxDistance,
|
D3DVALUE fMaxDistance,
|
||||||
|
@ -471,7 +504,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetMaxDistance(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_SetMinDistance(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_SetMinDistance(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
D3DVALUE fMinDistance,
|
D3DVALUE fMinDistance,
|
||||||
|
@ -480,7 +515,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetMinDistance(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_SetMode(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_SetMode(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
DWORD dwMode,
|
DWORD dwMode,
|
||||||
|
@ -491,7 +528,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetMode(
|
||||||
This->ds3db.dwMode = dwMode;
|
This->ds3db.dwMode = dwMode;
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_SetPosition(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_SetPosition(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
D3DVALUE x, D3DVALUE y, D3DVALUE z,
|
D3DVALUE x, D3DVALUE y, D3DVALUE z,
|
||||||
|
@ -500,7 +539,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetPosition(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static HRESULT WINAPI IDirectSound3DBufferImpl_SetVelocity(
|
static HRESULT WINAPI IDirectSound3DBufferImpl_SetVelocity(
|
||||||
LPDIRECTSOUND3DBUFFER iface,
|
LPDIRECTSOUND3DBUFFER iface,
|
||||||
D3DVALUE x, D3DVALUE y, D3DVALUE z,
|
D3DVALUE x, D3DVALUE y, D3DVALUE z,
|
||||||
|
@ -509,7 +550,9 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetVelocity(
|
||||||
FIXME("stub\n");
|
FIXME("stub\n");
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DSOUND3D
|
||||||
static ICOM_VTABLE(IDirectSound3DBuffer) ds3dbvt =
|
static ICOM_VTABLE(IDirectSound3DBuffer) ds3dbvt =
|
||||||
{
|
{
|
||||||
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
|
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
|
||||||
|
@ -537,6 +580,7 @@ static ICOM_VTABLE(IDirectSound3DBuffer) ds3dbvt =
|
||||||
IDirectSound3DBufferImpl_SetPosition,
|
IDirectSound3DBufferImpl_SetPosition,
|
||||||
IDirectSound3DBufferImpl_SetVelocity,
|
IDirectSound3DBufferImpl_SetVelocity,
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_DSOUND3D
|
#ifdef USE_DSOUND3D
|
||||||
static int DSOUND_Create3DBuffer(IDirectSoundBufferImpl* dsb)
|
static int DSOUND_Create3DBuffer(IDirectSoundBufferImpl* dsb)
|
||||||
|
|
|
@ -978,12 +978,12 @@ HICON WINAPI ExtractAssociatedIconA(HINSTANCE hInst, LPSTR lpIconPath, LPWORD lp
|
||||||
*/
|
*/
|
||||||
HICON16 WINAPI ExtractAssociatedIcon16(HINSTANCE16 hInst, LPSTR lpIconPath, LPWORD lpiIcon)
|
HICON16 WINAPI ExtractAssociatedIcon16(HINSTANCE16 hInst, LPSTR lpIconPath, LPWORD lpiIcon)
|
||||||
{ HICON16 hIcon;
|
{ HICON16 hIcon;
|
||||||
DWORD dwDummyIcon = 0;
|
WORD wDummyIcon = 0;
|
||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
|
|
||||||
if(lpiIcon == NULL)
|
if(lpiIcon == NULL)
|
||||||
lpiIcon = &dwDummyIcon;
|
lpiIcon = &wDummyIcon;
|
||||||
|
|
||||||
hIcon = ExtractIcon16(hInst, lpIconPath, *lpiIcon);
|
hIcon = ExtractIcon16(hInst, lpIconPath, *lpiIcon);
|
||||||
|
|
||||||
|
|
|
@ -43,8 +43,10 @@ DEFAULT_DEBUG_CHANNEL(aspi);
|
||||||
static void
|
static void
|
||||||
SCSI_GetProcinfo();
|
SCSI_GetProcinfo();
|
||||||
|
|
||||||
|
#ifdef linux
|
||||||
static void
|
static void
|
||||||
SCSI_MapHCtoController();
|
SCSI_MapHCtoController();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Exported functions */
|
/* Exported functions */
|
||||||
void
|
void
|
||||||
|
@ -52,7 +54,9 @@ SCSI_Init()
|
||||||
{
|
{
|
||||||
/* For now we just call SCSI_GetProcinfo */
|
/* For now we just call SCSI_GetProcinfo */
|
||||||
SCSI_GetProcinfo();
|
SCSI_GetProcinfo();
|
||||||
|
#ifdef linux
|
||||||
SCSI_MapHCtoController();
|
SCSI_MapHCtoController();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -25,7 +25,9 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/mman.h>
|
#ifdef HAVE_SYS_MMAN_H
|
||||||
|
# include <sys/mman.h>
|
||||||
|
#endif
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
#include "wingdi.h"
|
#include "wingdi.h"
|
||||||
#include "winerror.h"
|
#include "winerror.h"
|
||||||
|
|
Loading…
Reference in New Issue