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
b301234f
Commit
b301234f
authored
May 09, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
May 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Finish COM cleanup for ITypeLib objects.
parent
d7313b21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
typelib.c
dlls/oleaut32/typelib.c
+12
-7
No files found.
dlls/oleaut32/typelib.c
View file @
b301234f
...
...
@@ -1018,6 +1018,16 @@ typedef struct tagITypeLibImpl
static
const
ITypeLib2Vtbl
tlbvt
;
static
const
ITypeCompVtbl
tlbtcvt
;
static
inline
ITypeLibImpl
*
impl_from_ITypeLib2
(
ITypeLib2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ITypeLibImpl
,
ITypeLib2_iface
);
}
static
inline
ITypeLibImpl
*
impl_from_ITypeLib
(
ITypeLib
*
iface
)
{
return
impl_from_ITypeLib2
((
ITypeLib2
*
)
iface
);
}
static
inline
ITypeLibImpl
*
impl_from_ITypeComp
(
ITypeComp
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ITypeLibImpl
,
ITypeComp_iface
);
...
...
@@ -2977,7 +2987,7 @@ static HRESULT TLB_ReadTypeLib(LPCWSTR pszFileName, LPWSTR pszPath, UINT cchPath
}
if
(
*
ppTypeLib
)
{
ITypeLibImpl
*
impl
=
(
ITypeLibImpl
*
)
*
ppTypeLib
;
ITypeLibImpl
*
impl
=
impl_from_ITypeLib2
(
*
ppTypeLib
)
;
TRACE
(
"adding to cache
\n
"
);
impl
->
path
=
heap_alloc
((
strlenW
(
pszPath
)
+
1
)
*
sizeof
(
WCHAR
));
...
...
@@ -4231,11 +4241,6 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength)
return
&
pTypeLibImpl
->
ITypeLib2_iface
;
}
static
inline
ITypeLibImpl
*
impl_from_ITypeLib2
(
ITypeLib2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ITypeLibImpl
,
ITypeLib2_iface
);
}
static
HRESULT
WINAPI
ITypeLib2_fnQueryInterface
(
ITypeLib2
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
ITypeLibImpl
*
This
=
impl_from_ITypeLib2
(
iface
);
...
...
@@ -7102,7 +7107,7 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo(
SysFreeString
(
libnam
);
}
if
(
SUCCEEDED
(
result
))
{
ref_type
->
pImpTLInfo
->
pImpTypeLib
=
(
ITypeLibImpl
*
)
pTLib
;
ref_type
->
pImpTLInfo
->
pImpTypeLib
=
impl_from_ITypeLib
(
pTLib
)
;
ITypeLib_AddRef
(
pTLib
);
}
}
...
...
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