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
322f45cf
Commit
322f45cf
authored
Sep 27, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 27, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got rid of hack on MIDHDR's reserved field for 16/32 bit
discrimination.
parent
31655a69
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
midi.c
multimedia/midi.c
+4
-6
No files found.
multimedia/midi.c
View file @
322f45cf
...
@@ -453,8 +453,7 @@ static void midReceiveChar(WORD wDevID, unsigned char value, DWORD dwTime)
...
@@ -453,8 +453,7 @@ static void midReceiveChar(WORD wDevID, unsigned char value, DWORD dwTime)
WORD
sbfb
=
FALSE
;
WORD
sbfb
=
FALSE
;
if
(
lpMidiHdr
)
{
if
(
lpMidiHdr
)
{
LPBYTE
lpData
=
((
DWORD
)
lpMidiHdr
==
lpMidiHdr
->
reserved
)
?
LPBYTE
lpData
=
lpMidiHdr
->
lpData
;
(
LPBYTE
)
lpMidiHdr
->
lpData
:
(
LPBYTE
)
PTR_SEG_TO_LIN
(
lpMidiHdr
->
lpData
);
lpData
[
lpMidiHdr
->
dwBytesRecorded
++
]
=
value
;
lpData
[
lpMidiHdr
->
dwBytesRecorded
++
]
=
value
;
if
(
lpMidiHdr
->
dwBytesRecorded
==
lpMidiHdr
->
dwBufferLength
)
{
if
(
lpMidiHdr
->
dwBytesRecorded
==
lpMidiHdr
->
dwBufferLength
)
{
...
@@ -470,7 +469,7 @@ static void midReceiveChar(WORD wDevID, unsigned char value, DWORD dwTime)
...
@@ -470,7 +469,7 @@ static void midReceiveChar(WORD wDevID, unsigned char value, DWORD dwTime)
lpMidiHdr
->
dwFlags
&=
~
MHDR_INQUEUE
;
lpMidiHdr
->
dwFlags
&=
~
MHDR_INQUEUE
;
lpMidiHdr
->
dwFlags
|=
MHDR_DONE
;
lpMidiHdr
->
dwFlags
|=
MHDR_DONE
;
MidiInDev
[
wDevID
].
lpQueueHdr
=
(
LPMIDIHDR
)
lpMidiHdr
->
lpNext
;
MidiInDev
[
wDevID
].
lpQueueHdr
=
(
LPMIDIHDR
)
lpMidiHdr
->
lpNext
;
if
(
MIDI_NotifyClient
(
wDevID
,
MIM_LONGDATA
,
(
DWORD
)
lpMidiHdr
->
reserved
,
dwTime
)
!=
MMSYSERR_NOERROR
)
{
if
(
MIDI_NotifyClient
(
wDevID
,
MIM_LONGDATA
,
(
DWORD
)
lpMidiHdr
,
dwTime
)
!=
MMSYSERR_NOERROR
)
{
WARN
(
"Couldn't notify client
\n
"
);
WARN
(
"Couldn't notify client
\n
"
);
}
}
}
}
...
@@ -1418,8 +1417,7 @@ static DWORD modLongData(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
...
@@ -1418,8 +1417,7 @@ static DWORD modLongData(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
return
MIDIERR_NODEVICE
;
return
MIDIERR_NODEVICE
;
}
}
lpData
=
((
DWORD
)
lpMidiHdr
==
lpMidiHdr
->
reserved
)
?
lpData
=
lpMidiHdr
->
lpData
;
(
LPBYTE
)
lpMidiHdr
->
lpData
:
(
LPBYTE
)
PTR_SEG_TO_LIN
(
lpMidiHdr
->
lpData
);
if
(
lpData
==
NULL
)
if
(
lpData
==
NULL
)
return
MIDIERR_UNPREPARED
;
return
MIDIERR_UNPREPARED
;
...
@@ -1474,7 +1472,7 @@ static DWORD modLongData(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
...
@@ -1474,7 +1472,7 @@ static DWORD modLongData(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
lpMidiHdr
->
dwFlags
&=
~
MHDR_INQUEUE
;
lpMidiHdr
->
dwFlags
&=
~
MHDR_INQUEUE
;
lpMidiHdr
->
dwFlags
|=
MHDR_DONE
;
lpMidiHdr
->
dwFlags
|=
MHDR_DONE
;
if
(
MIDI_NotifyClient
(
wDevID
,
MOM_DONE
,
lpMidiHdr
->
reserved
,
0L
)
!=
MMSYSERR_NOERROR
)
{
if
(
MIDI_NotifyClient
(
wDevID
,
MOM_DONE
,
(
DWORD
)
lpMidiHdr
,
0L
)
!=
MMSYSERR_NOERROR
)
{
WARN
(
"can't notify client !
\n
"
);
WARN
(
"can't notify client !
\n
"
);
return
MMSYSERR_INVALPARAM
;
return
MMSYSERR_INVALPARAM
;
}
}
...
...
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