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
08bade68
Commit
08bade68
authored
Jun 14, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Do not rely on vtable placement in the implementation structure.
parent
bd97f64d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
typelib.c
dlls/oleaut32/typelib.c
+9
-9
No files found.
dlls/oleaut32/typelib.c
View file @
08bade68
...
...
@@ -4628,7 +4628,7 @@ static HRESULT WINAPI ITypeLib2_fnGetTypeInfo(
if
(
index
>=
This
->
TypeInfoCount
)
return
TYPE_E_ELEMENTNOTFOUND
;
*
ppTInfo
=
(
ITypeInfo
*
)
This
->
typeinfos
[
index
]
;
*
ppTInfo
=
(
ITypeInfo
*
)
&
This
->
typeinfos
[
index
]
->
ITypeInfo2_iface
;
ITypeInfo_AddRef
(
*
ppTInfo
);
return
S_OK
;
...
...
@@ -4676,7 +4676,7 @@ static HRESULT WINAPI ITypeLib2_fnGetTypeInfoOfGuid(
for
(
i
=
0
;
i
<
This
->
TypeInfoCount
;
++
i
){
if
(
IsEqualIID
(
TLB_get_guid_null
(
This
->
typeinfos
[
i
]
->
guid
),
guid
)){
*
ppTInfo
=
(
ITypeInfo
*
)
This
->
typeinfos
[
i
]
;
*
ppTInfo
=
(
ITypeInfo
*
)
&
This
->
typeinfos
[
i
]
->
ITypeInfo2_iface
;
ITypeInfo_AddRef
(
*
ppTInfo
);
return
S_OK
;
}
...
...
@@ -4918,8 +4918,8 @@ static HRESULT WINAPI ITypeLib2_fnFindName(
continue
;
ITypeLib2_fnFindName_exit:
ITypeInfo
_AddRef
((
ITypeInfo
*
)
pTInfo
);
ppTInfo
[
count
]
=
(
LPTYPEINFO
)
pTInfo
;
ITypeInfo
2_AddRef
(
&
pTInfo
->
ITypeInfo2_iface
);
ppTInfo
[
count
]
=
(
ITypeInfo
*
)
&
pTInfo
->
ITypeInfo2_iface
;
count
++
;
}
TRACE
(
"found %d typeinfos
\n
"
,
count
);
...
...
@@ -5253,7 +5253,7 @@ static HRESULT WINAPI ITypeLibComp_fnBind(
return
hr
;
*
pDescKind
=
DESCKIND_IMPLICITAPPOBJ
;
*
ppTInfo
=
(
ITypeInfo
*
)
pTypeInfo
;
*
ppTInfo
=
(
ITypeInfo
*
)
&
pTypeInfo
->
ITypeInfo2_iface
;
ITypeInfo_AddRef
(
*
ppTInfo
);
return
S_OK
;
}
...
...
@@ -8195,7 +8195,7 @@ HRESULT WINAPI CreateDispTypeInfo(
dump_TypeInfo
(
pTIClass
);
*
pptinfo
=
(
ITypeInfo
*
)
pTIClass
;
*
pptinfo
=
(
ITypeInfo
*
)
&
pTIClass
->
ITypeInfo2_iface
;
ITypeInfo_AddRef
(
*
pptinfo
);
ITypeLib2_Release
(
&
pTypeLibImpl
->
ITypeLib2_iface
);
...
...
@@ -8208,21 +8208,21 @@ static HRESULT WINAPI ITypeComp_fnQueryInterface(ITypeComp * iface, REFIID riid,
{
ITypeInfoImpl
*
This
=
info_impl_from_ITypeComp
(
iface
);
return
ITypeInfo
_QueryInterface
((
ITypeInfo
*
)
This
,
riid
,
ppv
);
return
ITypeInfo
2_QueryInterface
(
&
This
->
ITypeInfo2_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
ITypeComp_fnAddRef
(
ITypeComp
*
iface
)
{
ITypeInfoImpl
*
This
=
info_impl_from_ITypeComp
(
iface
);
return
ITypeInfo
_AddRef
((
ITypeInfo
*
)
This
);
return
ITypeInfo
2_AddRef
(
&
This
->
ITypeInfo2_iface
);
}
static
ULONG
WINAPI
ITypeComp_fnRelease
(
ITypeComp
*
iface
)
{
ITypeInfoImpl
*
This
=
info_impl_from_ITypeComp
(
iface
);
return
ITypeInfo
_Release
((
ITypeInfo
*
)
This
);
return
ITypeInfo
2_Release
(
&
This
->
ITypeInfo2_iface
);
}
static
HRESULT
WINAPI
ITypeComp_fnBind
(
...
...
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