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
d7313b21
Commit
d7313b21
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 internal loading structures.
parent
ab7fffaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
typelib.c
dlls/oleaut32/typelib.c
+21
-6
No files found.
dlls/oleaut32/typelib.c
View file @
d7313b21
...
...
@@ -2476,6 +2476,11 @@ typedef struct TLB_PEFile
LPVOID
typelib_base
;
}
TLB_PEFile
;
static
inline
TLB_PEFile
*
pefile_impl_from_IUnknown
(
IUnknown
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
TLB_PEFile
,
IUnknown_iface
);
}
static
HRESULT
WINAPI
TLB_PEFile_QueryInterface
(
IUnknown
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
...
...
@@ -2490,13 +2495,13 @@ static HRESULT WINAPI TLB_PEFile_QueryInterface(IUnknown *iface, REFIID riid, vo
static
ULONG
WINAPI
TLB_PEFile_AddRef
(
IUnknown
*
iface
)
{
TLB_PEFile
*
This
=
(
TLB_PEFile
*
)
iface
;
TLB_PEFile
*
This
=
pefile_impl_from_IUnknown
(
iface
)
;
return
InterlockedIncrement
(
&
This
->
refs
);
}
static
ULONG
WINAPI
TLB_PEFile_Release
(
IUnknown
*
iface
)
{
TLB_PEFile
*
This
=
(
TLB_PEFile
*
)
iface
;
TLB_PEFile
*
This
=
pefile_impl_from_IUnknown
(
iface
)
;
ULONG
refs
=
InterlockedDecrement
(
&
This
->
refs
);
if
(
!
refs
)
{
...
...
@@ -2571,6 +2576,11 @@ typedef struct TLB_NEFile
LPVOID
typelib_base
;
}
TLB_NEFile
;
static
inline
TLB_NEFile
*
nefile_impl_from_IUnknown
(
IUnknown
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
TLB_NEFile
,
IUnknown_iface
);
}
static
HRESULT
WINAPI
TLB_NEFile_QueryInterface
(
IUnknown
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
...
...
@@ -2585,13 +2595,13 @@ static HRESULT WINAPI TLB_NEFile_QueryInterface(IUnknown *iface, REFIID riid, vo
static
ULONG
WINAPI
TLB_NEFile_AddRef
(
IUnknown
*
iface
)
{
TLB_NEFile
*
This
=
(
TLB_NEFile
*
)
iface
;
TLB_NEFile
*
This
=
nefile_impl_from_IUnknown
(
iface
)
;
return
InterlockedIncrement
(
&
This
->
refs
);
}
static
ULONG
WINAPI
TLB_NEFile_Release
(
IUnknown
*
iface
)
{
TLB_NEFile
*
This
=
(
TLB_NEFile
*
)
iface
;
TLB_NEFile
*
This
=
nefile_impl_from_IUnknown
(
iface
)
;
ULONG
refs
=
InterlockedDecrement
(
&
This
->
refs
);
if
(
!
refs
)
{
...
...
@@ -2788,6 +2798,11 @@ typedef struct TLB_Mapping
LPVOID
typelib_base
;
}
TLB_Mapping
;
static
inline
TLB_Mapping
*
mapping_impl_from_IUnknown
(
IUnknown
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
TLB_Mapping
,
IUnknown_iface
);
}
static
HRESULT
WINAPI
TLB_Mapping_QueryInterface
(
IUnknown
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
...
...
@@ -2802,13 +2817,13 @@ static HRESULT WINAPI TLB_Mapping_QueryInterface(IUnknown *iface, REFIID riid, v
static
ULONG
WINAPI
TLB_Mapping_AddRef
(
IUnknown
*
iface
)
{
TLB_Mapping
*
This
=
(
TLB_Mapping
*
)
iface
;
TLB_Mapping
*
This
=
mapping_impl_from_IUnknown
(
iface
)
;
return
InterlockedIncrement
(
&
This
->
refs
);
}
static
ULONG
WINAPI
TLB_Mapping_Release
(
IUnknown
*
iface
)
{
TLB_Mapping
*
This
=
(
TLB_Mapping
*
)
iface
;
TLB_Mapping
*
This
=
mapping_impl_from_IUnknown
(
iface
)
;
ULONG
refs
=
InterlockedDecrement
(
&
This
->
refs
);
if
(
!
refs
)
{
...
...
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