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
127260bb
Commit
127260bb
authored
Jul 28, 2010
by
Huw Davies
Committed by
Alexandre Julliard
Jul 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Pass a real IUnknown ptr to CoMarshalInterface.
parent
8068d4ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
ole2.c
dlls/ole32/ole2.c
+10
-1
No files found.
dlls/ole32/ole2.c
View file @
127260bb
...
...
@@ -409,6 +409,7 @@ HRESULT WINAPI RegisterDragDrop(HWND hwnd, LPDROPTARGET pDropTarget)
HRESULT
hr
;
IStream
*
stream
;
HANDLE
map
;
IUnknown
*
unk
;
TRACE
(
"(%p,%p)
\n
"
,
hwnd
,
pDropTarget
);
...
...
@@ -449,7 +450,15 @@ HRESULT WINAPI RegisterDragDrop(HWND hwnd, LPDROPTARGET pDropTarget)
hr
=
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
stream
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
CoMarshalInterface
(
stream
,
&
IID_IDropTarget
,
(
IUnknown
*
)
pDropTarget
,
MSHCTX_LOCAL
,
NULL
,
MSHLFLAGS_TABLESTRONG
);
hr
=
IDropTarget_QueryInterface
(
pDropTarget
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
if
(
FAILED
(
hr
))
{
IStream_Release
(
stream
);
return
hr
;
}
hr
=
CoMarshalInterface
(
stream
,
&
IID_IDropTarget
,
unk
,
MSHCTX_LOCAL
,
NULL
,
MSHLFLAGS_TABLESTRONG
);
IUnknown_Release
(
unk
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
create_map_from_stream
(
stream
,
&
map
);
...
...
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