Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
919ee6b6
Commit
919ee6b6
authored
Feb 27, 2006
by
Robert Reif
Committed by
Alexandre Julliard
Feb 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Fix duplex create bug.
parent
6a0e7116
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
duplex.c
dlls/dsound/duplex.c
+20
-0
No files found.
dlls/dsound/duplex.c
View file @
919ee6b6
...
@@ -258,6 +258,12 @@ HRESULT IDirectSoundFullDuplex_IDirectSound_Create(
...
@@ -258,6 +258,12 @@ HRESULT IDirectSoundFullDuplex_IDirectSound_Create(
return
DSERR_INVALIDPARAM
;
return
DSERR_INVALIDPARAM
;
}
}
if
(((
IDirectSoundFullDuplexImpl
*
)
pdsfd
)
->
renderer_device
==
NULL
)
{
WARN
(
"not initialized
\n
"
);
*
ppds
=
NULL
;
return
DSERR_UNINITIALIZED
;
}
pdsfdds
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pdsfdds
));
pdsfdds
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pdsfdds
));
if
(
pdsfdds
==
NULL
)
{
if
(
pdsfdds
==
NULL
)
{
WARN
(
"out of memory
\n
"
);
WARN
(
"out of memory
\n
"
);
...
@@ -417,6 +423,12 @@ HRESULT IDirectSoundFullDuplex_IDirectSound8_Create(
...
@@ -417,6 +423,12 @@ HRESULT IDirectSoundFullDuplex_IDirectSound8_Create(
return
DSERR_INVALIDPARAM
;
return
DSERR_INVALIDPARAM
;
}
}
if
(((
IDirectSoundFullDuplexImpl
*
)
pdsfd
)
->
renderer_device
==
NULL
)
{
WARN
(
"not initialized
\n
"
);
*
ppds8
=
NULL
;
return
DSERR_UNINITIALIZED
;
}
pdsfdds8
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pdsfdds8
));
pdsfdds8
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pdsfdds8
));
if
(
pdsfdds8
==
NULL
)
{
if
(
pdsfdds8
==
NULL
)
{
WARN
(
"out of memory
\n
"
);
WARN
(
"out of memory
\n
"
);
...
@@ -525,6 +537,12 @@ HRESULT IDirectSoundFullDuplex_IDirectSoundCapture_Create(
...
@@ -525,6 +537,12 @@ HRESULT IDirectSoundFullDuplex_IDirectSoundCapture_Create(
return
DSERR_INVALIDPARAM
;
return
DSERR_INVALIDPARAM
;
}
}
if
(((
IDirectSoundFullDuplexImpl
*
)
pdsfd
)
->
capture_device
==
NULL
)
{
WARN
(
"not initialized
\n
"
);
*
ppdsc8
=
NULL
;
return
DSERR_UNINITIALIZED
;
}
pdsfddsc
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pdsfddsc
));
pdsfddsc
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pdsfddsc
));
if
(
pdsfddsc
==
NULL
)
{
if
(
pdsfddsc
==
NULL
)
{
WARN
(
"out of memory
\n
"
);
WARN
(
"out of memory
\n
"
);
...
@@ -774,6 +792,8 @@ HRESULT DSOUND_FullDuplexCreate(LPDIRECTSOUNDFULLDUPLEX* ppDSFD, IUnknown *pUnkO
...
@@ -774,6 +792,8 @@ HRESULT DSOUND_FullDuplexCreate(LPDIRECTSOUNDFULLDUPLEX* ppDSFD, IUnknown *pUnkO
This
->
capture_device
=
NULL
;
This
->
capture_device
=
NULL
;
This
->
renderer_device
=
NULL
;
This
->
renderer_device
=
NULL
;
*
ppDSFD
=
(
LPDIRECTSOUNDFULLDUPLEX
)
This
;
return
DS_OK
;
return
DS_OK
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment