Commit a3120ce8 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dsound: Make capture behave like native in regards to COM aggregation.

parent 13a4b03b
...@@ -1065,6 +1065,11 @@ static HRESULT WINAPI IDirectSoundCaptureImpl_CreateCaptureBuffer(IDirectSoundCa ...@@ -1065,6 +1065,11 @@ static HRESULT WINAPI IDirectSoundCaptureImpl_CreateCaptureBuffer(IDirectSoundCa
TRACE( "(%p,%p,%p,%p)\n",iface,lpcDSCBufferDesc,lplpDSCaptureBuffer,pUnk); TRACE( "(%p,%p,%p,%p)\n",iface,lpcDSCBufferDesc,lplpDSCaptureBuffer,pUnk);
if (pUnk) {
WARN("invalid parameter: pUnk != NULL\n");
return DSERR_NOAGGREGATION;
}
if (lpcDSCBufferDesc == NULL) { if (lpcDSCBufferDesc == NULL) {
WARN("invalid parameter: lpcDSCBufferDesc == NULL)\n"); WARN("invalid parameter: lpcDSCBufferDesc == NULL)\n");
return DSERR_INVALIDPARAM; return DSERR_INVALIDPARAM;
...@@ -1270,7 +1275,6 @@ HRESULT WINAPI DirectSoundCaptureCreate(LPCGUID lpcGUID, IDirectSoundCapture **p ...@@ -1270,7 +1275,6 @@ HRESULT WINAPI DirectSoundCaptureCreate(LPCGUID lpcGUID, IDirectSoundCapture **p
if (pUnkOuter) { if (pUnkOuter) {
WARN("invalid parameter: pUnkOuter != NULL\n"); WARN("invalid parameter: pUnkOuter != NULL\n");
*ppDSC = NULL;
return DSERR_NOAGGREGATION; return DSERR_NOAGGREGATION;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment