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
0eb58d6c
Commit
0eb58d6c
authored
Oct 23, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eb2e0d9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dmusic.c
dlls/dmusic/dmusic.c
+1
-1
dmusic_main.c
dlls/dmusic/dmusic_main.c
+3
-3
No files found.
dlls/dmusic/dmusic.c
View file @
0eb58d6c
...
@@ -301,7 +301,7 @@ static HRESULT WINAPI IDirectMusic8Impl_GetDefaultPort(LPDIRECTMUSIC8 iface, LPG
...
@@ -301,7 +301,7 @@ static HRESULT WINAPI IDirectMusic8Impl_GetDefaultPort(LPDIRECTMUSIC8 iface, LPG
return
S_OK
;
return
S_OK
;
}
}
/* FIXME: Check return types to ensure we're interpreting data right */
/* FIXME: Check return types to ensure we're interpreting data right */
MultiByteToWideChar
(
CP_ACP
,
0
,
returnBuffer
,
-
1
,
buff
,
sizeof
(
buff
)
/
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
returnBuffer
,
-
1
,
buff
,
ARRAY_SIZE
(
buff
));
CLSIDFromString
(
buff
,
&
defaultPortGUID
);
CLSIDFromString
(
buff
,
&
defaultPortGUID
);
*
guid_port
=
defaultPortGUID
;
*
guid_port
=
defaultPortGUID
;
...
...
dlls/dmusic/dmusic_main.c
View file @
0eb58d6c
...
@@ -408,7 +408,7 @@ const char *debugstr_dmguid (const GUID *id) {
...
@@ -408,7 +408,7 @@ const char *debugstr_dmguid (const GUID *id) {
if
(
!
id
)
return
"(null)"
;
if
(
!
id
)
return
"(null)"
;
for
(
i
=
0
;
i
<
sizeof
(
guids
)
/
sizeof
(
guids
[
0
]
);
i
++
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
guids
);
i
++
)
{
if
(
IsEqualGUID
(
id
,
guids
[
i
].
guid
))
if
(
IsEqualGUID
(
id
,
guids
[
i
].
guid
))
return
guids
[
i
].
name
;
return
guids
[
i
].
name
;
}
}
...
@@ -452,7 +452,7 @@ static const char *debugstr_DMUS_OBJ_FLAGS (DWORD flagmask) {
...
@@ -452,7 +452,7 @@ static const char *debugstr_DMUS_OBJ_FLAGS (DWORD flagmask) {
FE
(
DMUS_OBJ_MEMORY
),
FE
(
DMUS_OBJ_MEMORY
),
FE
(
DMUS_OBJ_STREAM
)
FE
(
DMUS_OBJ_STREAM
)
};
};
return
debugstr_flags
(
flagmask
,
flags
,
sizeof
(
flags
)
/
sizeof
(
flags
[
0
]
));
return
debugstr_flags
(
flagmask
,
flags
,
ARRAY_SIZE
(
flags
));
}
}
/* Dump whole DMUS_OBJECTDESC struct */
/* Dump whole DMUS_OBJECTDESC struct */
...
@@ -484,7 +484,7 @@ static const char* debugstr_DMUS_PORTPARAMS_FLAGS(DWORD flagmask)
...
@@ -484,7 +484,7 @@ static const char* debugstr_DMUS_PORTPARAMS_FLAGS(DWORD flagmask)
FE
(
DMUS_PORTPARAMS_EFFECTS
),
FE
(
DMUS_PORTPARAMS_EFFECTS
),
FE
(
DMUS_PORTPARAMS_SHARE
)
FE
(
DMUS_PORTPARAMS_SHARE
)
};
};
return
debugstr_flags
(
flagmask
,
flags
,
sizeof
(
flags
)
/
sizeof
(
flags
[
0
]
));
return
debugstr_flags
(
flagmask
,
flags
,
ARRAY_SIZE
(
flags
));
}
}
/* Dump whole DMUS_PORTPARAMS struct */
/* Dump whole DMUS_PORTPARAMS struct */
...
...
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