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
d2c602b2
Commit
d2c602b2
authored
Mar 26, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss.drv: Assign to structs instead of using memcpy.
parent
f100b142
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
audio.c
dlls/wineoss.drv/audio.c
+2
-2
dscapture.c
dlls/wineoss.drv/dscapture.c
+2
-2
dsrender.c
dlls/wineoss.drv/dsrender.c
+3
-3
No files found.
dlls/wineoss.drv/audio.c
View file @
d2c602b2
...
...
@@ -2056,7 +2056,7 @@ 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
)
{
...
...
@@ -2943,7 +2943,7 @@ DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
wwi
->
dwTotalRead
=
0
;
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
)
{
...
...
dlls/wineoss.drv/dscapture.c
View file @
d2c602b2
...
...
@@ -769,7 +769,7 @@ static HRESULT WINAPI IDsCaptureDriverImpl_GetDriverDesc(
}
/* copy version from driver */
memcpy
(
pDesc
,
&
(
WInDev
[
This
->
wDevID
].
ossdev
.
ds_desc
),
sizeof
(
DSDRIVERDESC
))
;
*
pDesc
=
WInDev
[
This
->
wDevID
].
ossdev
.
ds_desc
;
pDesc
->
dnDevNode
=
WInDev
[
This
->
wDevID
].
waveDesc
.
dnDevNode
;
pDesc
->
wVxdId
=
0
;
...
...
@@ -809,7 +809,7 @@ static HRESULT WINAPI IDsCaptureDriverImpl_GetCaps(
{
IDsCaptureDriverImpl
*
This
=
(
IDsCaptureDriverImpl
*
)
iface
;
TRACE
(
"(%p,%p)
\n
"
,
This
,
pCaps
);
memcpy
(
pCaps
,
&
(
WInDev
[
This
->
wDevID
].
ossdev
.
dsc_caps
),
sizeof
(
DSCDRIVERCAPS
))
;
*
pCaps
=
WInDev
[
This
->
wDevID
].
ossdev
.
dsc_caps
;
return
DS_OK
;
}
...
...
dlls/wineoss.drv/dsrender.c
View file @
d2c602b2
...
...
@@ -710,7 +710,7 @@ static HRESULT WINAPI IDsDriverImpl_GetDriverDesc(PIDSDRIVER iface,
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pDesc
);
/* copy version from driver */
memcpy
(
pDesc
,
&
(
WOutDev
[
This
->
wDevID
].
ossdev
.
ds_desc
),
sizeof
(
DSDRIVERDESC
))
;
*
pDesc
=
WOutDev
[
This
->
wDevID
].
ossdev
.
ds_desc
;
pDesc
->
dwFlags
|=
DSDDESC_DOMMSYSTEMOPEN
|
DSDDESC_DOMMSYSTEMSETFORMAT
|
DSDDESC_USESYSTEMMEMORY
|
DSDDESC_DONTNEEDPRIMARYLOCK
|
...
...
@@ -761,7 +761,7 @@ static HRESULT WINAPI IDsDriverImpl_GetCaps(PIDSDRIVER iface, PDSDRIVERCAPS pCap
{
IDsDriverImpl
*
This
=
(
IDsDriverImpl
*
)
iface
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pCaps
);
memcpy
(
pCaps
,
&
(
WOutDev
[
This
->
wDevID
].
ossdev
.
ds_caps
),
sizeof
(
DSDRIVERCAPS
))
;
*
pCaps
=
WOutDev
[
This
->
wDevID
].
ossdev
.
ds_caps
;
return
DS_OK
;
}
...
...
@@ -960,7 +960,7 @@ DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
DWORD
wodDsDesc
(
UINT
wDevID
,
PDSDRIVERDESC
desc
)
{
TRACE
(
"(%d,%p)
\n
"
,
wDevID
,
desc
);
memcpy
(
desc
,
&
(
WOutDev
[
wDevID
].
ossdev
.
ds_desc
),
sizeof
(
DSDRIVERDESC
))
;
*
desc
=
WOutDev
[
wDevID
].
ossdev
.
ds_desc
;
return
MMSYSERR_NOERROR
;
}
...
...
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