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
419ab928
Commit
419ab928
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: Get rid of the DMUS_PMSGItem typedef.
parent
6cd1c4e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
performance.c
dlls/dmime/performance.c
+22
-21
No files found.
dlls/dmime/performance.c
View file @
419ab928
...
...
@@ -62,24 +62,24 @@ struct performance
DWORD
procThreadId
;
BOOL
procThreadTicStarted
;
CRITICAL_SECTION
safe
;
struct
DMUS_PMSGItem
*
head
;
struct
DMUS_PMSGItem
*
imm_head
;
struct
message
*
head
;
struct
message
*
imm_head
;
IReferenceClock
*
master_clock
;
REFERENCE_TIME
init_time
;
};
typedef
struct
DMUS_PMSGItem
DMUS_PMSGItem
;
struct
DMUS_PMSGItem
{
DMUS_PMSGItem
*
next
;
DMUS_PMSGItem
*
prev
;
struct
message
{
struct
message
*
next
;
struct
message
*
prev
;
BOOL
bInUse
;
DWORD
cb
;
DMUS_PMSG
pMsg
;
BOOL
bInUse
;
DWORD
cb
;
DMUS_PMSG
pMsg
;
};
#define DMUS_PMSGToItem(pMSG) ((
DMUS_PMSGItem *)(((unsigned char *)pMSG) - offsetof(DMUS_PMSGItem
, pMsg)))
#define DMUS_PMSGToItem(pMSG) ((
struct message *)(((unsigned char *)pMSG) - offsetof(struct message
, pMsg)))
#define DMUS_ItemRemoveFromQueue(This,pItem) \
{\
if (pItem->prev) pItem->prev->next = pItem->next;\
...
...
@@ -95,7 +95,8 @@ struct DMUS_PMSGItem {
#define PROCESSMSG_ADD (WM_APP + 4)
static
DMUS_PMSGItem
*
ProceedMsg
(
struct
performance
*
This
,
DMUS_PMSGItem
*
cur
)
{
static
struct
message
*
ProceedMsg
(
struct
performance
*
This
,
struct
message
*
cur
)
{
if
(
cur
->
pMsg
.
dwType
==
DMUS_PMSGT_NOTIFICATION
)
{
SetEvent
(
This
->
hNotification
);
}
...
...
@@ -117,9 +118,9 @@ static DWORD WINAPI ProcessMsgThread(LPVOID lpParam) {
MSG
msg
;
HRESULT
hr
;
REFERENCE_TIME
rtCurTime
;
DMUS_PMSGItem
*
it
=
NULL
;
DMUS_PMSGItem
*
cur
=
NULL
;
DMUS_PMSGItem
*
it_next
=
NULL
;
struct
message
*
it
=
NULL
;
struct
message
*
cur
=
NULL
;
struct
message
*
it_next
=
NULL
;
while
(
TRUE
)
{
DWORD
dwDec
=
This
->
rtLatencyTime
+
This
->
dwBumperLength
;
...
...
@@ -401,10 +402,10 @@ static HRESULT WINAPI performance_GetBumperLength(IDirectMusicPerformance8 *ifac
static
HRESULT
WINAPI
performance_SendPMsg
(
IDirectMusicPerformance8
*
iface
,
DMUS_PMSG
*
msg
)
{
struct
performance
*
This
=
impl_from_IDirectMusicPerformance8
(
iface
);
DMUS_PMSGItem
*
message
;
DMUS_PMSGItem
*
it
=
NULL
;
DMUS_PMSGItem
*
prev_it
=
NULL
;
DMUS_PMSGItem
**
queue
;
struct
message
*
message
;
struct
message
*
it
=
NULL
;
struct
message
*
prev_it
=
NULL
;
struct
message
**
queue
;
HRESULT
hr
;
FIXME
(
"(%p, %p): semi-stub
\n
"
,
This
,
msg
);
...
...
@@ -535,14 +536,14 @@ static HRESULT WINAPI performance_GetTime(IDirectMusicPerformance8 *iface, REFER
static
HRESULT
WINAPI
performance_AllocPMsg
(
IDirectMusicPerformance8
*
iface
,
ULONG
size
,
DMUS_PMSG
**
msg
)
{
struct
performance
*
This
=
impl_from_IDirectMusicPerformance8
(
iface
);
DMUS_PMSGItem
*
message
;
struct
message
*
message
;
TRACE
(
"(%p, %ld, %p)
\n
"
,
This
,
size
,
msg
);
if
(
!
msg
)
return
E_POINTER
;
if
(
size
<
sizeof
(
DMUS_PMSG
))
return
E_INVALIDARG
;
if
(
!
(
message
=
calloc
(
1
,
size
-
sizeof
(
DMUS_PMSG
)
+
sizeof
(
DMUS_PMSGItem
))))
return
E_OUTOFMEMORY
;
if
(
!
(
message
=
calloc
(
1
,
size
-
sizeof
(
DMUS_PMSG
)
+
sizeof
(
struct
message
))))
return
E_OUTOFMEMORY
;
message
->
pMsg
.
dwSize
=
size
;
*
msg
=
&
message
->
pMsg
;
...
...
@@ -552,7 +553,7 @@ static HRESULT WINAPI performance_AllocPMsg(IDirectMusicPerformance8 *iface, ULO
static
HRESULT
WINAPI
performance_FreePMsg
(
IDirectMusicPerformance8
*
iface
,
DMUS_PMSG
*
msg
)
{
struct
performance
*
This
=
impl_from_IDirectMusicPerformance8
(
iface
);
DMUS_PMSGItem
*
message
;
struct
message
*
message
;
HRESULT
hr
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
msg
);
...
...
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