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
cb3517a1
Commit
cb3517a1
authored
Mar 30, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Set cancellation object directly (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b2885d14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
main.c
dlls/mf/main.c
+5
-2
No files found.
dlls/mf/main.c
View file @
cb3517a1
...
...
@@ -760,17 +760,20 @@ static HRESULT WINAPI file_scheme_handler_BeginCreateObject(IMFSchemeHandler *if
hr
=
MFCreateAsyncResult
(
&
context
->
IUnknown_iface
,
&
handler
->
IMFAsyncCallback_iface
,
(
IUnknown
*
)
caller
,
&
item
);
IUnknown_Release
(
&
context
->
IUnknown_iface
);
IMFAsyncResult_Release
(
caller
);
if
(
SUCCEEDED
(
hr
))
{
if
(
SUCCEEDED
(
hr
=
MFPutWorkItemEx
(
MFASYNC_CALLBACK_QUEUE_IO
,
item
)))
{
if
(
cancel_cookie
)
IMFAsyncResult_GetState
(
item
,
cancel_cookie
);
{
*
cancel_cookie
=
(
IUnknown
*
)
caller
;
IUnknown_AddRef
(
*
cancel_cookie
);
}
}
IMFAsyncResult_Release
(
item
);
}
IMFAsyncResult_Release
(
caller
);
return
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