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
ea85c5b1
Commit
ea85c5b1
authored
Feb 23, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmband: Assign to struct instead of using memcpy.
parent
41025d56
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
bandtrack.c
dlls/dmband/bandtrack.c
+3
-1
No files found.
dlls/dmband/bandtrack.c
View file @
ea85c5b1
...
...
@@ -302,7 +302,7 @@ static HRESULT IDirectMusicBandTrack_IPersistStream_LoadBand (LPPERSISTSTREAM if
ERR
(
": no more memory
\n
"
);
return
E_OUTOFMEMORY
;
}
memcpy
(
&
pNewBand
->
BandHeader
,
pHeader
,
sizeof
(
DMUS_PRIVATE_BAND_ITEM_HEADER
))
;
pNewBand
->
BandHeader
=
*
pHeader
;
pNewBand
->
pBand
=
(
IDirectMusicBandImpl
*
)((
char
*
)(
*
ppBand
)
-
offsetof
(
IDirectMusicBandImpl
,
BandVtbl
));
IDirectMusicBand_AddRef
(
*
ppBand
);
list_add_tail
(
&
This
->
Bands
,
&
pNewBand
->
entry
);
...
...
@@ -322,6 +322,8 @@ static HRESULT IDirectMusicBandTrack_IPersistStream_ParseBandsList (LPPERSISTSTR
IDirectMusicBand
*
pBand
=
NULL
;
DMUS_PRIVATE_BAND_ITEM_HEADER
header
;
memset
(
&
header
,
0
,
sizeof
header
);
if
(
pChunk
->
fccID
!=
DMUS_FOURCC_BANDS_LIST
)
{
ERR_
(
dmfile
)(
": %s chunk should be a BANDS list
\n
"
,
debugstr_fourcc
(
pChunk
->
fccID
));
return
E_FAIL
;
...
...
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