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
3b59fa8f
Commit
3b59fa8f
authored
Feb 15, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Feb 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The Global Interface Table should do table-strong marshaling instead
of normal marshaling so that an interface can be retrieved more than one time.
parent
552cc7d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
git.c
dlls/ole32/git.c
+19
-1
No files found.
dlls/ole32/git.c
View file @
3b59fa8f
...
...
@@ -223,6 +223,7 @@ HRESULT WINAPI StdGlobalInterfaceTable_RegisterInterfaceInGlobal(IGlobalInterfac
IStream
*
stream
=
NULL
;
HRESULT
hres
;
StdGITEntry
*
entry
;
static
const
LARGE_INTEGER
zero
;
TRACE
(
"iface=%p, pUnk=%p, riid=%s, pdwCookie=0x%p
\n
"
,
iface
,
pUnk
,
debugstr_guid
(
riid
),
pdwCookie
);
...
...
@@ -230,8 +231,18 @@ HRESULT WINAPI StdGlobalInterfaceTable_RegisterInterfaceInGlobal(IGlobalInterfac
/* marshal the interface */
TRACE
(
"About to marshal the interface
\n
"
);
hres
=
CoMarshalInterThreadInterfaceInStream
(
riid
,
pUnk
,
&
stream
);
hres
=
CreateStreamOnHGlobal
(
0
,
TRUE
,
&
stream
);
if
(
hres
)
return
hres
;
hres
=
CoMarshalInterface
(
stream
,
riid
,
pUnk
,
MSHCTX_INPROC
,
NULL
,
MSHLFLAGS_TABLESTRONG
);
if
(
hres
)
{
IStream_Release
(
stream
);
return
hres
;
}
IStream_Seek
(
stream
,
zero
,
SEEK_SET
,
NULL
);
entry
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
StdGITEntry
));
if
(
entry
==
NULL
)
return
E_OUTOFMEMORY
;
...
...
@@ -261,6 +272,7 @@ HRESULT WINAPI StdGlobalInterfaceTable_RegisterInterfaceInGlobal(IGlobalInterfac
HRESULT
WINAPI
StdGlobalInterfaceTable_RevokeInterfaceFromGlobal
(
IGlobalInterfaceTable
*
iface
,
DWORD
dwCookie
)
{
StdGlobalInterfaceTableImpl
*
const
self
=
(
StdGlobalInterfaceTableImpl
*
)
iface
;
StdGITEntry
*
entry
;
HRESULT
hr
;
TRACE
(
"iface=%p, dwCookie=0x%x
\n
"
,
iface
,
(
UINT
)
dwCookie
);
...
...
@@ -271,6 +283,12 @@ HRESULT WINAPI StdGlobalInterfaceTable_RevokeInterfaceFromGlobal(IGlobalInterfac
}
/* Free the stream */
hr
=
CoReleaseMarshalData
(
entry
->
stream
);
if
(
hr
!=
S_OK
)
{
WARN
(
"Failed to release marshal data, hr = 0x%08lx
\n
"
,
hr
);
return
hr
;
}
IStream_Release
(
entry
->
stream
);
/* chop entry out of the list, and free the memory */
...
...
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