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
7144849d
Commit
7144849d
authored
Sep 04, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Sep 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Fix null pointer dereference for waveout in creating buffer.
parent
985df9cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
buffer.c
dlls/dsound/buffer.c
+6
-3
No files found.
dlls/dsound/buffer.c
View file @
7144849d
...
@@ -1023,13 +1023,16 @@ HRESULT IDirectSoundBufferImpl_Create(
...
@@ -1023,13 +1023,16 @@ HRESULT IDirectSoundBufferImpl_Create(
use_hw
=
!!
(
dsbd
->
dwFlags
&
DSBCAPS_LOCHARDWARE
);
use_hw
=
!!
(
dsbd
->
dwFlags
&
DSBCAPS_LOCHARDWARE
);
TRACE
(
"use_hw = %d, capf = 0x%08x, device->drvcaps.dwFlags = 0x%08x
\n
"
,
use_hw
,
capf
,
device
->
drvcaps
.
dwFlags
);
TRACE
(
"use_hw = %d, capf = 0x%08x, device->drvcaps.dwFlags = 0x%08x
\n
"
,
use_hw
,
capf
,
device
->
drvcaps
.
dwFlags
);
if
(
use_hw
&&
(
device
->
drvcaps
.
dwFlags
&
capf
)
!=
capf
)
if
(
use_hw
&&
(
(
device
->
drvcaps
.
dwFlags
&
capf
)
!=
capf
||
!
device
->
driver
)
)
{
{
WARN
(
"Format not supported for hardware buffer
\n
"
);
if
(
device
->
driver
)
WARN
(
"Format not supported for hardware buffer
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
dsb
->
pwfx
);
HeapFree
(
GetProcessHeap
(),
0
,
dsb
->
pwfx
);
HeapFree
(
GetProcessHeap
(),
0
,
dsb
);
HeapFree
(
GetProcessHeap
(),
0
,
dsb
);
*
pdsb
=
NULL
;
*
pdsb
=
NULL
;
return
DSERR_BADFORMAT
;
if
((
device
->
drvcaps
.
dwFlags
&
capf
)
!=
capf
)
return
DSERR_BADFORMAT
;
return
DSERR_GENERIC
;
}
}
/* FIXME: check hardware sample rate mixing capabilities */
/* FIXME: check hardware sample rate mixing capabilities */
...
...
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