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
e8aebfcb
Commit
e8aebfcb
authored
Mar 29, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Assign to structs instead of using CopyMemory.
parent
cb7b58c5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
capture.c
dlls/dsound/capture.c
+1
-1
dsound_main.c
dlls/dsound/dsound_main.c
+3
-3
primary.c
dlls/dsound/primary.c
+1
-1
No files found.
dlls/dsound/capture.c
View file @
e8aebfcb
...
...
@@ -1366,7 +1366,7 @@ HRESULT IDirectSoundCaptureBufferImpl_Create(
if
(
wfex
->
wFormatTag
==
WAVE_FORMAT_PCM
)
{
device
->
pwfx
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
WAVEFORMATEX
));
CopyMemory
(
device
->
pwfx
,
wfex
,
sizeof
(
WAVEFORMATEX
))
;
*
device
->
pwfx
=
*
wfex
;
device
->
pwfx
->
cbSize
=
0
;
}
else
{
device
->
pwfx
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
WAVEFORMATEX
)
+
wfex
->
cbSize
);
...
...
dlls/dsound/dsound_main.c
View file @
e8aebfcb
...
...
@@ -254,19 +254,19 @@ HRESULT WINAPI GetDeviceID(LPCGUID pGuidSrc, LPGUID pGuidDest)
if
(
IsEqualGUID
(
&
DSDEVID_DefaultPlayback
,
pGuidSrc
)
||
IsEqualGUID
(
&
DSDEVID_DefaultVoicePlayback
,
pGuidSrc
)
)
{
CopyMemory
(
pGuidDest
,
&
DSOUND_renderer_guids
[
ds_default_playback
],
sizeof
(
GUID
))
;
*
pGuidDest
=
DSOUND_renderer_guids
[
ds_default_playback
]
;
TRACE
(
"returns %s
\n
"
,
get_device_id
(
pGuidDest
));
return
DS_OK
;
}
if
(
IsEqualGUID
(
&
DSDEVID_DefaultCapture
,
pGuidSrc
)
||
IsEqualGUID
(
&
DSDEVID_DefaultVoiceCapture
,
pGuidSrc
)
)
{
CopyMemory
(
pGuidDest
,
&
DSOUND_capture_guids
[
ds_default_capture
],
sizeof
(
GUID
))
;
*
pGuidDest
=
DSOUND_capture_guids
[
ds_default_capture
]
;
TRACE
(
"returns %s
\n
"
,
get_device_id
(
pGuidDest
));
return
DS_OK
;
}
CopyMemory
(
pGuidDest
,
pGuidSrc
,
sizeof
(
GUID
))
;
*
pGuidDest
=
*
pGuidSrc
;
TRACE
(
"returns %s
\n
"
,
get_device_id
(
pGuidDest
));
return
DS_OK
;
...
...
dlls/dsound/primary.c
View file @
e8aebfcb
...
...
@@ -1173,7 +1173,7 @@ HRESULT PrimaryBufferImpl_Create(
dsb
->
device
=
device
;
dsb
->
lpVtbl
=
&
dspbvt
;
CopyMemory
(
&
device
->
dsbd
,
dsbd
,
sizeof
(
*
dsbd
))
;
device
->
dsbd
=
*
dsbd
;
TRACE
(
"Created primary buffer at %p
\n
"
,
dsb
);
TRACE
(
"(formattag=0x%04x,chans=%d,samplerate=%d,"
...
...
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