Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
919ee6b6
Commit
919ee6b6
authored
19 years ago
by
Robert Reif
Committed by
Alexandre Julliard
19 years ago
Browse files
Options
Downloads
Patches
Plain Diff
dsound: Fix duplex create bug.
parent
6a0e7116
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/dsound/duplex.c
+20
-0
20 additions, 0 deletions
dlls/dsound/duplex.c
with
20 additions
and
0 deletions
dlls/dsound/duplex.c
+
20
−
0
View file @
919ee6b6
...
...
@@ -258,6 +258,12 @@ HRESULT IDirectSoundFullDuplex_IDirectSound_Create(
return
DSERR_INVALIDPARAM
;
}
if
(((
IDirectSoundFullDuplexImpl
*
)
pdsfd
)
->
renderer_device
==
NULL
)
{
WARN
(
"not initialized
\n
"
);
*
ppds
=
NULL
;
return
DSERR_UNINITIALIZED
;
}
pdsfdds
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pdsfdds
));
if
(
pdsfdds
==
NULL
)
{
WARN
(
"out of memory
\n
"
);
...
...
@@ -417,6 +423,12 @@ HRESULT IDirectSoundFullDuplex_IDirectSound8_Create(
return
DSERR_INVALIDPARAM
;
}
if
(((
IDirectSoundFullDuplexImpl
*
)
pdsfd
)
->
renderer_device
==
NULL
)
{
WARN
(
"not initialized
\n
"
);
*
ppds8
=
NULL
;
return
DSERR_UNINITIALIZED
;
}
pdsfdds8
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pdsfdds8
));
if
(
pdsfdds8
==
NULL
)
{
WARN
(
"out of memory
\n
"
);
...
...
@@ -525,6 +537,12 @@ HRESULT IDirectSoundFullDuplex_IDirectSoundCapture_Create(
return
DSERR_INVALIDPARAM
;
}
if
(((
IDirectSoundFullDuplexImpl
*
)
pdsfd
)
->
capture_device
==
NULL
)
{
WARN
(
"not initialized
\n
"
);
*
ppdsc8
=
NULL
;
return
DSERR_UNINITIALIZED
;
}
pdsfddsc
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pdsfddsc
));
if
(
pdsfddsc
==
NULL
)
{
WARN
(
"out of memory
\n
"
);
...
...
@@ -774,6 +792,8 @@ HRESULT DSOUND_FullDuplexCreate(LPDIRECTSOUNDFULLDUPLEX* ppDSFD, IUnknown *pUnkO
This
->
capture_device
=
NULL
;
This
->
renderer_device
=
NULL
;
*
ppDSFD
=
(
LPDIRECTSOUNDFULLDUPLEX
)
This
;
return
DS_OK
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment