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
df9fc895
Commit
df9fc895
authored
May 25, 2022
by
Bernhard Kölbl
Committed by
Alexandre Julliard
Aug 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.speech: Add missing async_void_Release implementation.
Signed-off-by:
Bernhard Kölbl
<
besentv@gmail.com
>
parent
6dc873bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
async.c
dlls/windows.media.speech/async.c
+17
-1
No files found.
dlls/windows.media.speech/async.c
View file @
df9fc895
...
@@ -93,6 +93,21 @@ ULONG WINAPI async_void_Release( IAsyncAction *iface )
...
@@ -93,6 +93,21 @@ ULONG WINAPI async_void_Release( IAsyncAction *iface )
struct
async_void
*
impl
=
impl_from_IAsyncAction
(
iface
);
struct
async_void
*
impl
=
impl_from_IAsyncAction
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
impl
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
impl
->
ref
);
TRACE
(
"iface %p, ref %lu.
\n
"
,
iface
,
ref
);
TRACE
(
"iface %p, ref %lu.
\n
"
,
iface
,
ref
);
if
(
!
ref
)
{
IAsyncInfo_Close
(
&
impl
->
IAsyncInfo_iface
);
if
(
impl
->
invoker
)
IInspectable_Release
(
impl
->
invoker
);
if
(
impl
->
handler
&&
impl
->
handler
!=
HANDLER_NOT_SET
)
IAsyncActionCompletedHandler_Release
(
impl
->
handler
);
impl
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
impl
->
cs
);
free
(
impl
);
}
return
ref
;
return
ref
;
}
}
...
@@ -127,7 +142,7 @@ HRESULT WINAPI async_void_put_Completed( IAsyncAction *iface, IAsyncActionComple
...
@@ -127,7 +142,7 @@ HRESULT WINAPI async_void_put_Completed( IAsyncAction *iface, IAsyncActionComple
else
if
(
impl
->
handler
!=
HANDLER_NOT_SET
)
else
if
(
impl
->
handler
!=
HANDLER_NOT_SET
)
hr
=
E_ILLEGAL_DELEGATE_ASSIGNMENT
;
hr
=
E_ILLEGAL_DELEGATE_ASSIGNMENT
;
/*
/*
impl->handler can only be set once with async_
operation
_put_Completed,
impl->handler can only be set once with async_
void
_put_Completed,
so by default we set a non HANDLER_NOT_SET value, in this case handler.
so by default we set a non HANDLER_NOT_SET value, in this case handler.
*/
*/
else
if
((
impl
->
handler
=
handler
))
else
if
((
impl
->
handler
=
handler
))
...
@@ -445,6 +460,7 @@ static ULONG WINAPI async_inspectable_Release( IAsyncOperation_IInspectable *ifa
...
@@ -445,6 +460,7 @@ static ULONG WINAPI async_inspectable_Release( IAsyncOperation_IInspectable *ifa
if
(
impl
->
result
)
if
(
impl
->
result
)
IInspectable_Release
(
impl
->
result
);
IInspectable_Release
(
impl
->
result
);
impl
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
impl
->
cs
);
DeleteCriticalSection
(
&
impl
->
cs
);
free
(
impl
);
free
(
impl
);
}
}
...
...
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