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
61ebdbcb
Commit
61ebdbcb
authored
Sep 05, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Remove unnecessary struct message members.
parent
db9758fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
performance.c
dlls/dmime/performance.c
+4
-6
No files found.
dlls/dmime/performance.c
View file @
61ebdbcb
...
@@ -72,8 +72,6 @@ struct performance
...
@@ -72,8 +72,6 @@ struct performance
struct
message
struct
message
{
{
struct
list
entry
;
struct
list
entry
;
BOOL
bInUse
;
DWORD
cb
;
DMUS_PMSG
pMsg
;
DMUS_PMSG
pMsg
;
};
};
...
@@ -91,7 +89,7 @@ static struct message *ProceedMsg(struct performance *This, struct message *cur)
...
@@ -91,7 +89,7 @@ static struct message *ProceedMsg(struct performance *This, struct message *cur)
SetEvent
(
This
->
hNotification
);
SetEvent
(
This
->
hNotification
);
}
}
list_remove
(
&
cur
->
entry
);
list_remove
(
&
cur
->
entry
);
cur
->
bInUse
=
FALSE
;
list_init
(
&
cur
->
entry
)
;
switch
(
cur
->
pMsg
.
dwType
)
{
switch
(
cur
->
pMsg
.
dwType
)
{
case
DMUS_PMSGT_WAVE
:
case
DMUS_PMSGT_WAVE
:
case
DMUS_PMSGT_TEMPO
:
case
DMUS_PMSGT_TEMPO
:
...
@@ -406,7 +404,7 @@ static HRESULT WINAPI performance_SendPMsg(IDirectMusicPerformance8 *iface, DMUS
...
@@ -406,7 +404,7 @@ static HRESULT WINAPI performance_SendPMsg(IDirectMusicPerformance8 *iface, DMUS
EnterCriticalSection
(
&
This
->
safe
);
EnterCriticalSection
(
&
This
->
safe
);
if
(
message
->
bInUse
)
if
(
!
list_empty
(
&
message
->
entry
)
)
hr
=
DMUS_E_ALREADY_SENT
;
hr
=
DMUS_E_ALREADY_SENT
;
else
else
{
{
...
@@ -429,7 +427,6 @@ static HRESULT WINAPI performance_SendPMsg(IDirectMusicPerformance8 *iface, DMUS
...
@@ -429,7 +427,6 @@ static HRESULT WINAPI performance_SendPMsg(IDirectMusicPerformance8 *iface, DMUS
if
(
next
->
pMsg
.
rtTime
>=
message
->
pMsg
.
rtTime
)
break
;
if
(
next
->
pMsg
.
rtTime
>=
message
->
pMsg
.
rtTime
)
break
;
list_add_before
(
&
next
->
entry
,
&
message
->
entry
);
list_add_before
(
&
next
->
entry
,
&
message
->
entry
);
message
->
bInUse
=
TRUE
;
hr
=
S_OK
;
hr
=
S_OK
;
}
}
...
@@ -515,6 +512,7 @@ static HRESULT WINAPI performance_AllocPMsg(IDirectMusicPerformance8 *iface, ULO
...
@@ -515,6 +512,7 @@ static HRESULT WINAPI performance_AllocPMsg(IDirectMusicPerformance8 *iface, ULO
if
(
!
(
message
=
calloc
(
1
,
size
-
sizeof
(
DMUS_PMSG
)
+
sizeof
(
struct
message
))))
return
E_OUTOFMEMORY
;
if
(
!
(
message
=
calloc
(
1
,
size
-
sizeof
(
DMUS_PMSG
)
+
sizeof
(
struct
message
))))
return
E_OUTOFMEMORY
;
message
->
pMsg
.
dwSize
=
size
;
message
->
pMsg
.
dwSize
=
size
;
list_init
(
&
message
->
entry
);
*
msg
=
&
message
->
pMsg
;
*
msg
=
&
message
->
pMsg
;
return
S_OK
;
return
S_OK
;
...
@@ -532,7 +530,7 @@ static HRESULT WINAPI performance_FreePMsg(IDirectMusicPerformance8 *iface, DMUS
...
@@ -532,7 +530,7 @@ static HRESULT WINAPI performance_FreePMsg(IDirectMusicPerformance8 *iface, DMUS
message
=
DMUS_PMSGToItem
(
msg
);
message
=
DMUS_PMSGToItem
(
msg
);
EnterCriticalSection
(
&
This
->
safe
);
EnterCriticalSection
(
&
This
->
safe
);
hr
=
message
->
bInUse
?
DMUS_E_CANNOT_FREE
:
S_OK
;
hr
=
!
list_empty
(
&
message
->
entry
)
?
DMUS_E_CANNOT_FREE
:
S_OK
;
LeaveCriticalSection
(
&
This
->
safe
);
LeaveCriticalSection
(
&
This
->
safe
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
...
...
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