Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
57444565
Commit
57444565
authored
Oct 11, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Oct 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PrimaryBufferImpl pointer to deleted DirectSoundImpl.
parent
c734d933
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
dsound.c
dlls/dsound/dsound.c
+8
-3
No files found.
dlls/dsound/dsound.c
View file @
57444565
...
@@ -247,9 +247,13 @@ static ULONG WINAPI IDirectSoundImpl_Release(
...
@@ -247,9 +247,13 @@ static ULONG WINAPI IDirectSoundImpl_Release(
TRACE
(
"(%p) ref was %ld
\n
"
,
This
,
ref
+
1
);
TRACE
(
"(%p) ref was %ld
\n
"
,
This
,
ref
+
1
);
if
(
!
ref
)
{
if
(
!
ref
)
{
if
(
This
->
device
)
if
(
This
->
device
)
{
DirectSoundDevice_Release
(
This
->
device
);
if
(
DirectSoundDevice_Release
(
This
->
device
)
!=
0
)
{
/* device not released so make sure primary reference to This removed */
if
(
This
->
device
->
primary
)
This
->
device
->
primary
->
dsound
=
NULL
;
}
}
HeapFree
(
GetProcessHeap
(),
0
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
TRACE
(
"(%p) released
\n
"
,
This
);
TRACE
(
"(%p) released
\n
"
,
This
);
}
}
...
@@ -325,6 +329,7 @@ static HRESULT WINAPI DSOUND_CreateSoundBuffer(
...
@@ -325,6 +329,7 @@ static HRESULT WINAPI DSOUND_CreateSoundBuffer(
WARN
(
"Primary Buffer already created
\n
"
);
WARN
(
"Primary Buffer already created
\n
"
);
IDirectSoundBuffer_AddRef
((
LPDIRECTSOUNDBUFFER8
)(
This
->
device
->
primary
));
IDirectSoundBuffer_AddRef
((
LPDIRECTSOUNDBUFFER8
)(
This
->
device
->
primary
));
*
ppdsb
=
(
LPDIRECTSOUNDBUFFER
)(
This
->
device
->
primary
);
*
ppdsb
=
(
LPDIRECTSOUNDBUFFER
)(
This
->
device
->
primary
);
This
->
device
->
primary
->
dsound
=
This
;
}
else
{
}
else
{
This
->
device
->
dsbd
=
*
dsbd
;
This
->
device
->
dsbd
=
*
dsbd
;
hres
=
PrimaryBufferImpl_Create
(
This
,
(
PrimaryBufferImpl
**
)
&
(
This
->
device
->
primary
),
&
(
This
->
device
->
dsbd
));
hres
=
PrimaryBufferImpl_Create
(
This
,
(
PrimaryBufferImpl
**
)
&
(
This
->
device
->
primary
),
&
(
This
->
device
->
dsbd
));
...
...
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