mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +00:00
dsound: Revert "dsound: Disable property sets if hardware doesn't support it.".
This commit is contained in:
parent
5d7c63f1e0
commit
c45d4f77c6
1 changed files with 0 additions and 10 deletions
|
@ -197,20 +197,10 @@ HRESULT IKsBufferPropertySetImpl_Create(
|
||||||
IDirectSoundBufferImpl *dsb,
|
IDirectSoundBufferImpl *dsb,
|
||||||
IKsBufferPropertySetImpl **piks)
|
IKsBufferPropertySetImpl **piks)
|
||||||
{
|
{
|
||||||
PIDSDRIVERPROPERTYSET ps = NULL;
|
|
||||||
IKsBufferPropertySetImpl *iks;
|
IKsBufferPropertySetImpl *iks;
|
||||||
TRACE("(%p,%p)\n",dsb,piks);
|
TRACE("(%p,%p)\n",dsb,piks);
|
||||||
*piks = NULL;
|
*piks = NULL;
|
||||||
|
|
||||||
if (!dsb->hwbuf)
|
|
||||||
return DSERR_INVALIDPARAM;
|
|
||||||
|
|
||||||
IDsDriver_QueryInterface(dsb->hwbuf, &IID_IDsDriverPropertySet, (void **)&ps);
|
|
||||||
if (!ps)
|
|
||||||
return DSERR_INVALIDPARAM;
|
|
||||||
|
|
||||||
IUnknown_Release(ps);
|
|
||||||
|
|
||||||
iks = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(*iks));
|
iks = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(*iks));
|
||||||
if (iks == 0) {
|
if (iks == 0) {
|
||||||
WARN("out of memory\n");
|
WARN("out of memory\n");
|
||||||
|
|
Loading…
Reference in a new issue