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
91a29134
Commit
91a29134
authored
Dec 15, 2023
by
Yuxuan Shui
Committed by
Alexandre Julliard
Dec 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Fix handling of curve PMSG.
DMUS_PMSG::dwType is the type of the message, but we are comparing it to curve types. We should be using DMUS_CURVE_PMSG::bType instead.
parent
46030d41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
performance.c
dlls/dmime/performance.c
+8
-2
No files found.
dlls/dmime/performance.c
View file @
91a29134
...
...
@@ -2087,7 +2087,7 @@ static HRESULT WINAPI performance_tool_ProcessPMsg(IDirectMusicTool *iface,
DMUS_CURVE_PMSG
*
curve
=
(
DMUS_CURVE_PMSG
*
)
msg
;
msg
->
mtTime
+=
curve
->
nOffset
;
switch
(
curve
->
dw
Type
)
switch
(
curve
->
b
Type
)
{
case
DMUS_CURVET_CCCURVE
:
if
(
FAILED
(
hr
=
performance_send_midi_pmsg
(
This
,
msg
,
DMUS_PMSGF_MUSICTIME
|
DMUS_PMSGF_TOOL_IMMEDIATE
,
...
...
@@ -2096,7 +2096,13 @@ static HRESULT WINAPI performance_tool_ProcessPMsg(IDirectMusicTool *iface,
break
;
case
DMUS_CURVET_RPNCURVE
:
case
DMUS_CURVET_NRPNCURVE
:
FIXME
(
"Unhandled curve type %#lx
\n
"
,
curve
->
dwType
);
case
DMUS_CURVET_MATCURVE
:
case
DMUS_CURVET_PATCURVE
:
case
DMUS_CURVET_PBCURVE
:
FIXME
(
"Unhandled curve type %#x
\n
"
,
curve
->
bType
);
break
;
default:
WARN
(
"Invalid curve type %#x
\n
"
,
curve
->
bType
);
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