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
4f2a9232
Commit
4f2a9232
authored
Jul 07, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmstyle: Remove a not very useful macro.
The memory is already zeroed on allocation.
parent
0ab95a1e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
dmutils.h
dlls/dmstyle/dmutils.h
+0
-6
style.c
dlls/dmstyle/style.c
+2
-2
No files found.
dlls/dmstyle/dmutils.h
View file @
4f2a9232
...
...
@@ -49,12 +49,6 @@ typedef struct {
}
guid_info
;
/* used for initialising structs */
#define DM_STRUCT_INIT(x) \
do { \
memset((x), 0, sizeof(*(x))); \
(x)->dwSize = sizeof(*x); \
} while (0)
#define FE(x) { x, #x }
#define GE(x) { &x, #x }
...
...
dlls/dmstyle/style.c
View file @
4f2a9232
...
...
@@ -440,7 +440,7 @@ static HRESULT parse_part_ref_list(DMUS_PRIVATE_CHUNK *pChunk, IStream *pStm,
hr
=
IStream_Read
(
pStm
,
&
pNewItem
->
part_ref
,
sizeof
(
DMUS_IO_PARTREF
),
NULL
);
/*TRACE_(dmfile)(" - sizeof %lu\n", sizeof(DMUS_IO_PARTREF));*/
list_add_tail
(
&
pNewMotif
->
Items
,
&
pNewItem
->
entry
);
DM_STRUCT_INIT
(
&
pNewItem
->
desc
);
pNewItem
->
desc
.
dwSize
=
sizeof
(
pNewItem
->
desc
);
break
;
}
case
FOURCC_LIST
:
{
...
...
@@ -669,7 +669,7 @@ static HRESULT parse_pattern_list(IDirectMusicStyle8Impl *This, DMUS_PRIVATE_CHU
/** TODO trace pattern */
/** reset all data, as a new pattern begin */
DM_STRUCT_INIT
(
&
pNewMotif
->
desc
);
pNewMotif
->
desc
.
dwSize
=
sizeof
(
pNewMotif
->
desc
);
list_init
(
&
pNewMotif
->
Items
);
break
;
}
...
...
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