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
8c37581d
Commit
8c37581d
authored
Jul 28, 2003
by
Robert Reif
Committed by
Alexandre Julliard
Jul 28, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug where a NULL primary buffer pointer is used when the
DirectSound object didn't create properly.
parent
369116d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dsound_main.c
dlls/dsound/dsound_main.c
+4
-0
No files found.
dlls/dsound/dsound_main.c
View file @
8c37581d
...
@@ -716,6 +716,8 @@ static ULONG WINAPI IDirectSoundImpl_Release(LPDIRECTSOUND8 iface) {
...
@@ -716,6 +716,8 @@ static ULONG WINAPI IDirectSoundImpl_Release(LPDIRECTSOUND8 iface) {
}
}
RtlReleaseResource
(
&
(
This
->
lock
));
RtlReleaseResource
(
&
(
This
->
lock
));
if
(
This
->
primary
)
IDirectSoundBuffer8_Release
((
LPDIRECTSOUNDBUFFER8
)
This
->
primary
);
IDirectSoundBuffer8_Release
((
LPDIRECTSOUNDBUFFER8
)
This
->
primary
);
hres
=
DSOUND_PrimaryDestroy
(
This
);
hres
=
DSOUND_PrimaryDestroy
(
This
);
...
@@ -1112,6 +1114,8 @@ HRESULT WINAPI DirectSoundCreate8(LPCGUID lpcGUID,LPDIRECTSOUND8 *ppDS,IUnknown
...
@@ -1112,6 +1114,8 @@ HRESULT WINAPI DirectSoundCreate8(LPCGUID lpcGUID,LPDIRECTSOUND8 *ppDS,IUnknown
err
=
PrimaryBuffer_Create
((
*
ippDS
),
(
PrimaryBufferImpl
**
)
&
((
*
ippDS
)
->
primary
),
&
((
*
ippDS
)
->
dsbd
));
err
=
PrimaryBuffer_Create
((
*
ippDS
),
(
PrimaryBufferImpl
**
)
&
((
*
ippDS
)
->
primary
),
&
((
*
ippDS
)
->
dsbd
));
if
((
*
ippDS
)
->
primary
)
if
((
*
ippDS
)
->
primary
)
IDirectSoundBuffer_AddRef
((
LPDIRECTSOUNDBUFFER8
)(
*
ippDS
)
->
primary
);
IDirectSoundBuffer_AddRef
((
LPDIRECTSOUNDBUFFER8
)(
*
ippDS
)
->
primary
);
else
WARN
(
"PrimaryBuffer_Create failed
\n
"
);
return
err
;
return
err
;
}
}
...
...
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