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
663af65e
Commit
663af65e
authored
Mar 29, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Fix EndCreateObject*() when events are used.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d762d863
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
main.c
dlls/mfplat/main.c
+11
-2
No files found.
dlls/mfplat/main.c
View file @
663af65e
...
...
@@ -4259,6 +4259,7 @@ struct resolver_queued_result
IUnknown
*
object
;
MF_OBJECT_TYPE
obj_type
;
HRESULT
hr
;
IMFAsyncResult
*
inner_result
;
enum
resolved_object_origin
origin
;
};
...
...
@@ -4313,7 +4314,7 @@ static HRESULT resolver_handler_end_create(struct source_resolver *resolver, enu
IMFSchemeHandler
*
scheme_handler
;
}
handler
;
queued_result
=
heap_alloc
(
sizeof
(
*
queued_result
));
queued_result
=
heap_alloc
_zero
(
sizeof
(
*
queued_result
));
IMFAsyncResult_GetObject
(
inner_result
,
&
handler
.
handler
);
...
...
@@ -4337,6 +4338,12 @@ static HRESULT resolver_handler_end_create(struct source_resolver *resolver, enu
{
MFASYNCRESULT
*
data
=
(
MFASYNCRESULT
*
)
inner_result
;
if
(
data
->
hEvent
)
{
queued_result
->
inner_result
=
inner_result
;
IMFAsyncResult_AddRef
(
queued_result
->
inner_result
);
}
/* Push resolved object type and created object, so we don't have to guess on End*() call. */
EnterCriticalSection
(
&
resolver
->
cs
);
list_add_tail
(
&
resolver
->
pending
,
&
queued_result
->
entry
);
...
...
@@ -4687,7 +4694,7 @@ static HRESULT resolver_end_create_object(struct source_resolver *resolver, enum
LIST_FOR_EACH_ENTRY
(
iter
,
&
resolver
->
pending
,
struct
resolver_queued_result
,
entry
)
{
if
(
iter
->
object
==
object
&&
iter
->
origin
==
origin
)
if
(
iter
->
inner_result
==
result
||
(
iter
->
object
==
object
&&
iter
->
origin
==
origin
)
)
{
list_remove
(
&
iter
->
entry
);
queued_result
=
iter
;
...
...
@@ -4704,6 +4711,8 @@ static HRESULT resolver_end_create_object(struct source_resolver *resolver, enum
*
out
=
queued_result
->
object
;
*
obj_type
=
queued_result
->
obj_type
;
hr
=
queued_result
->
hr
;
if
(
queued_result
->
inner_result
)
IMFAsyncResult_Release
(
queued_result
->
inner_result
);
heap_free
(
queued_result
);
}
else
...
...
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