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
0595ed39
Commit
0595ed39
authored
Oct 11, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Remove a few null initializations in DirectSoundDevice_Create.
The memory is allocated with HEAP_ZERO_MEMORY.
parent
3230ea02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
dsound.c
dlls/dsound/dsound.c
+2
-14
No files found.
dlls/dsound/dsound.c
View file @
0595ed39
...
...
@@ -1166,23 +1166,11 @@ static HRESULT DirectSoundDevice_Create(DirectSoundDevice ** ppDevice)
}
device
->
ref
=
1
;
device
->
driver
=
NULL
;
device
->
priolevel
=
DSSCL_NORMAL
;
device
->
fraglen
=
0
;
device
->
hwbuf
=
NULL
;
device
->
buffer
=
NULL
;
device
->
buflen
=
0
;
device
->
writelead
=
0
;
device
->
state
=
STATE_STOPPED
;
device
->
nrofbuffers
=
0
;
device
->
buffers
=
NULL
;
device
->
primary
=
NULL
;
device
->
speaker_config
=
DSSPEAKER_STEREO
|
(
DSSPEAKER_GEOMETRY_NARROW
<<
16
);
device
->
tmp_buffer
=
NULL
;
device
->
tmp_buffer_len
=
0
;
/* 3D listener initial parameters */
device
->
listener
=
NULL
;
device
->
ds3dl
.
dwSize
=
sizeof
(
DS3DLISTENER
);
device
->
ds3dl
.
vPosition
.
x
=
0
.
0
;
device
->
ds3dl
.
vPosition
.
y
=
0
.
0
;
...
...
@@ -1200,8 +1188,8 @@ static HRESULT DirectSoundDevice_Create(DirectSoundDevice ** ppDevice)
device
->
ds3dl
.
flRolloffFactor
=
DS3D_DEFAULTROLLOFFFACTOR
;
device
->
ds3dl
.
flDopplerFactor
=
DS3D_DEFAULTDOPPLERFACTOR
;
device
->
prebuf
=
ds_snd_queue_max
;
device
->
guid
=
GUID_NULL
;
device
->
prebuf
=
ds_snd_queue_max
;
device
->
guid
=
GUID_NULL
;
/* Set default wave format (may need it for waveOutOpen) */
device
->
pwfx
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
WAVEFORMATEX
));
...
...
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