dsound: Remove NULL This pointer checks.

This commit is contained in:
Robert Reif 2006-04-08 09:16:29 -04:00 committed by Alexandre Julliard
parent 2c4c204371
commit 208b0c2e72
1 changed files with 0 additions and 45 deletions

View File

@ -458,11 +458,6 @@ HRESULT WINAPI IDirectSoundCaptureImpl_CreateCaptureBuffer(
TRACE( "(%p,%p,%p,%p)\n",iface,lpcDSCBufferDesc,lplpDSCaptureBuffer,pUnk);
if (This == NULL) {
WARN("invalid parameter: This == NULL\n");
return DSERR_INVALIDPARAM;
}
if (lpcDSCBufferDesc == NULL) {
WARN("invalid parameter: lpcDSCBufferDesc == NULL)\n");
return DSERR_INVALIDPARAM;
@ -813,11 +808,6 @@ IDirectSoundCaptureBufferImpl_GetCaps(
IDirectSoundCaptureBufferImpl *This = (IDirectSoundCaptureBufferImpl *)iface;
TRACE( "(%p,%p)\n", This, lpDSCBCaps );
if (This == NULL) {
WARN("invalid parameter: This == NULL\n");
return DSERR_INVALIDPARAM;
}
if (lpDSCBCaps == NULL) {
WARN("invalid parameter: lpDSCBCaps == NULL\n");
return DSERR_INVALIDPARAM;
@ -853,11 +843,6 @@ IDirectSoundCaptureBufferImpl_GetCurrentPosition(
HRESULT hres = DS_OK;
TRACE( "(%p,%p,%p)\n", This, lpdwCapturePosition, lpdwReadPosition );
if (This == NULL) {
WARN("invalid parameter: This == NULL\n");
return DSERR_INVALIDPARAM;
}
if (This->device == NULL) {
WARN("invalid parameter: This->device == NULL\n");
return DSERR_INVALIDPARAM;
@ -913,11 +898,6 @@ IDirectSoundCaptureBufferImpl_GetFormat(
TRACE( "(%p,%p,0x%08lx,%p)\n", This, lpwfxFormat, dwSizeAllocated,
lpdwSizeWritten );
if (This == NULL) {
WARN("invalid parameter: This == NULL\n");
return DSERR_INVALIDPARAM;
}
if (This->device == NULL) {
WARN("invalid parameter: This->device == NULL\n");
return DSERR_INVALIDPARAM;
@ -951,11 +931,6 @@ IDirectSoundCaptureBufferImpl_GetStatus(
IDirectSoundCaptureBufferImpl *This = (IDirectSoundCaptureBufferImpl *)iface;
TRACE( "(%p, %p), thread is %04lx\n", This, lpdwStatus, GetCurrentThreadId() );
if (This == NULL) {
WARN("invalid parameter: This == NULL\n");
return DSERR_INVALIDPARAM;
}
if (This->device == NULL) {
WARN("invalid parameter: This->device == NULL\n");
return DSERR_INVALIDPARAM;
@ -1016,11 +991,6 @@ IDirectSoundCaptureBufferImpl_Lock(
dwReadBytes, lplpvAudioPtr1, lpdwAudioBytes1, lplpvAudioPtr2,
lpdwAudioBytes2, dwFlags, GetTickCount() );
if (This == NULL) {
WARN("invalid parameter: This == NULL\n");
return DSERR_INVALIDPARAM;
}
if (This->device == NULL) {
WARN("invalid parameter: This->device == NULL\n");
return DSERR_INVALIDPARAM;
@ -1080,11 +1050,6 @@ IDirectSoundCaptureBufferImpl_Start(
IDirectSoundCaptureBufferImpl *This = (IDirectSoundCaptureBufferImpl *)iface;
TRACE( "(%p,0x%08lx)\n", This, dwFlags );
if (This == NULL) {
WARN("invalid parameter: This == NULL\n");
return DSERR_INVALIDPARAM;
}
if (This->device == NULL) {
WARN("invalid parameter: This->device == NULL\n");
return DSERR_INVALIDPARAM;
@ -1237,11 +1202,6 @@ IDirectSoundCaptureBufferImpl_Stop( LPDIRECTSOUNDCAPTUREBUFFER8 iface )
IDirectSoundCaptureBufferImpl *This = (IDirectSoundCaptureBufferImpl *)iface;
TRACE( "(%p)\n", This );
if (This == NULL) {
WARN("invalid parameter: This == NULL\n");
return DSERR_INVALIDPARAM;
}
if (This->device == NULL) {
WARN("invalid parameter: This->device == NULL\n");
return DSERR_INVALIDPARAM;
@ -1288,11 +1248,6 @@ IDirectSoundCaptureBufferImpl_Unlock(
TRACE( "(%p,%p,%08lu,%p,%08lu)\n", This, lpvAudioPtr1, dwAudioBytes1,
lpvAudioPtr2, dwAudioBytes2 );
if (This == NULL) {
WARN("invalid parameter: This == NULL\n");
return DSERR_INVALIDPARAM;
}
if (lpvAudioPtr1 == NULL) {
WARN("invalid parameter: lpvAudioPtr1 == NULL\n");
return DSERR_INVALIDPARAM;