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
6a9ad836
Commit
6a9ad836
authored
Feb 01, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciseq: Removed useless casts to long.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3a7a6127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
mcimidi.c
dlls/mciseq/mcimidi.c
+3
-5
No files found.
dlls/mciseq/mcimidi.c
View file @
6a9ad836
...
...
@@ -179,7 +179,7 @@ static DWORD MIDI_mciReadByte(WINE_MCIMIDI* wmm, BYTE *lpbyt)
{
DWORD
ret
=
0
;
if
(
mmioRead
(
wmm
->
hFile
,
(
HPSTR
)
lpbyt
,
sizeof
(
BYTE
))
!=
(
long
)
sizeof
(
BYTE
))
{
if
(
mmioRead
(
wmm
->
hFile
,
(
HPSTR
)
lpbyt
,
sizeof
(
BYTE
))
!=
sizeof
(
BYTE
))
{
WARN
(
"Error reading wmm=%p
\n
"
,
wmm
);
ret
=
MCIERR_INVALID_FILE
;
}
...
...
@@ -319,8 +319,7 @@ static DWORD MIDI_mciReadMTrk(WINE_MCIMIDI* wmm, MCI_MIDITRACK* mmt)
DWORD
toberead
;
FOURCC
fourcc
;
if
(
mmioRead
(
wmm
->
hFile
,
(
HPSTR
)
&
fourcc
,
(
long
)
sizeof
(
FOURCC
))
!=
(
long
)
sizeof
(
FOURCC
))
{
if
(
mmioRead
(
wmm
->
hFile
,
(
HPSTR
)
&
fourcc
,
sizeof
(
FOURCC
))
!=
sizeof
(
FOURCC
))
{
return
MCIERR_INVALID_FILE
;
}
...
...
@@ -413,8 +412,7 @@ static DWORD MIDI_mciReadMThd(WINE_MCIMIDI* wmm, DWORD dwOffset)
WARN
(
"Can't seek at %08X begin of 'MThd'
\n
"
,
dwOffset
);
return
MCIERR_INVALID_FILE
;
}
if
(
mmioRead
(
wmm
->
hFile
,
(
HPSTR
)
&
fourcc
,
(
long
)
sizeof
(
FOURCC
))
!=
(
long
)
sizeof
(
FOURCC
))
if
(
mmioRead
(
wmm
->
hFile
,
(
HPSTR
)
&
fourcc
,
sizeof
(
FOURCC
))
!=
sizeof
(
FOURCC
))
return
MCIERR_INVALID_FILE
;
if
(
fourcc
!=
mmioFOURCC
(
'M'
,
'T'
,
'h'
,
'd'
))
{
...
...
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