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
52f6018c
Commit
52f6018c
authored
Mar 26, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineesd.drv: Assign to structs instead of using memcpy.
parent
058761fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
audio.c
dlls/wineesd.drv/audio.c
+3
-3
No files found.
dlls/wineesd.drv/audio.c
View file @
52f6018c
...
...
@@ -1227,7 +1227,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
wwo
->
wFlags
=
HIWORD
(
dwFlags
&
CALLBACK_TYPEMASK
);
memcpy
(
&
wwo
->
waveDesc
,
lpDesc
,
sizeof
(
WAVEOPENDESC
))
;
wwo
->
waveDesc
=
*
lpDesc
;
copy_format
(
lpDesc
->
lpFormat
,
&
wwo
->
waveFormat
);
if
(
wwo
->
waveFormat
.
Format
.
wBitsPerSample
==
0
)
{
...
...
@@ -1881,8 +1881,8 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
dwFlags
&=
~
WAVE_DIRECTSOUND
;
wwi
->
wFlags
=
HIWORD
(
dwFlags
&
CALLBACK_TYPEMASK
);
memcpy
(
&
wwi
->
waveDesc
,
lpDesc
,
sizeof
(
WAVEOPENDESC
))
;
wwi
->
waveDesc
=
*
lpDesc
;
copy_format
(
lpDesc
->
lpFormat
,
&
wwi
->
waveFormat
);
if
(
wwi
->
waveFormat
.
Format
.
wBitsPerSample
==
0
)
{
...
...
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