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
b09fd556
Commit
b09fd556
authored
Jan 03, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Use implementation pointer to avoid casts.
parent
060c8f0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
typelib.c
dlls/oleaut32/typelib.c
+12
-12
No files found.
dlls/oleaut32/typelib.c
View file @
b09fd556
...
...
@@ -1141,8 +1141,8 @@ static inline ITypeInfoImpl *info_impl_from_ITypeComp( ITypeComp *iface )
static
const
ITypeInfo2Vtbl
tinfvt
;
static
const
ITypeCompVtbl
tcompvt
;
static
ITypeInfo
2
*
ITypeInfo
_Constructor
(
void
);
static
void
ITypeInfo
_fn
Destroy
(
ITypeInfoImpl
*
This
);
static
ITypeInfo
Impl
*
ITypeInfoImpl
_Constructor
(
void
);
static
void
ITypeInfo
Impl_
Destroy
(
ITypeInfoImpl
*
This
);
typedef
struct
tagTLBContext
{
...
...
@@ -2226,7 +2226,7 @@ static ITypeInfoImpl * MSFT_DoTypeInfo(
TRACE_
(
typelib
)(
"count=%u
\n
"
,
count
);
ptiRet
=
(
ITypeInfoImpl
*
)
ITypeInfo
_Constructor
();
ptiRet
=
ITypeInfoImpl
_Constructor
();
MSFT_ReadLEDWords
(
&
tiBase
,
sizeof
(
tiBase
)
,
pcx
,
pcx
->
pTblDir
->
pTypeInfoTab
.
offset
+
count
*
sizeof
(
tiBase
));
...
...
@@ -3961,7 +3961,7 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength)
"pTIHeader->res16 = %x, pTIHeader->res1e = %x
\n
"
,
pTIHeader
->
res06
,
pTIHeader
->
res0e
,
pTIHeader
->
res16
,
pTIHeader
->
res1e
);
*
ppTypeInfoImpl
=
(
ITypeInfoImpl
*
)
ITypeInfo
_Constructor
();
*
ppTypeInfoImpl
=
ITypeInfoImpl
_Constructor
();
(
*
ppTypeInfoImpl
)
->
pTypeLib
=
pTypeLibImpl
;
(
*
ppTypeInfoImpl
)
->
index
=
i
;
(
*
ppTypeInfoImpl
)
->
Name
=
TLB_MultiByteToBSTR
(
...
...
@@ -4186,7 +4186,7 @@ static ULONG WINAPI ITypeLib2_fnRelease( ITypeLib2 *iface)
for
(
pTI
=
This
->
pTypeInfo
;
pTI
;
pTI
=
pTINext
)
{
pTINext
=
pTI
->
next
;
ITypeInfo
_fn
Destroy
(
pTI
);
ITypeInfo
Impl_
Destroy
(
pTI
);
}
heap_free
(
This
);
return
0
;
...
...
@@ -4935,9 +4935,9 @@ static const ITypeCompVtbl tlbtcvt =
};
/*================== ITypeInfo(2) Methods ===================================*/
static
ITypeInfo
2
*
ITypeInfo
_Constructor
(
void
)
static
ITypeInfo
Impl
*
ITypeInfoImpl
_Constructor
(
void
)
{
ITypeInfoImpl
*
pTypeInfoImpl
;
ITypeInfoImpl
*
pTypeInfoImpl
;
pTypeInfoImpl
=
heap_alloc_zero
(
sizeof
(
ITypeInfoImpl
));
if
(
pTypeInfoImpl
)
...
...
@@ -4950,7 +4950,7 @@ static ITypeInfo2 * ITypeInfo_Constructor(void)
pTypeInfoImpl
->
TypeAttr
.
memidDestructor
=
MEMBERID_NIL
;
}
TRACE
(
"(%p)
\n
"
,
pTypeInfoImpl
);
return
(
ITypeInfo2
*
)
pTypeInfoImpl
;
return
pTypeInfoImpl
;
}
/* ITypeInfo::QueryInterface
...
...
@@ -4994,7 +4994,7 @@ static ULONG WINAPI ITypeInfo_fnAddRef( ITypeInfo2 *iface)
return
ref
;
}
static
void
ITypeInfo
_fn
Destroy
(
ITypeInfoImpl
*
This
)
static
void
ITypeInfo
Impl_
Destroy
(
ITypeInfoImpl
*
This
)
{
TLBFuncDesc
*
pFInfo
,
*
pFInfoNext
;
TLBVarDesc
*
pVInfo
,
*
pVInfoNext
;
...
...
@@ -6845,7 +6845,7 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo(
/* when we meet a DUAL dispinterface, we must create the interface
* version of it.
*/
ITypeInfoImpl
*
pTypeInfoImpl
=
(
ITypeInfoImpl
*
)
ITypeInfo
_Constructor
();
ITypeInfoImpl
*
pTypeInfoImpl
=
ITypeInfoImpl
_Constructor
();
/* the interface version contains the same information as the dispinterface
...
...
@@ -7696,7 +7696,7 @@ HRESULT WINAPI CreateDispTypeInfo(
pTypeLibImpl
=
TypeLibImpl_Constructor
();
if
(
!
pTypeLibImpl
)
return
E_FAIL
;
pTIIface
=
(
ITypeInfoImpl
*
)
ITypeInfo
_Constructor
();
pTIIface
=
ITypeInfoImpl
_Constructor
();
pTIIface
->
pTypeLib
=
pTypeLibImpl
;
pTIIface
->
index
=
0
;
pTIIface
->
Name
=
NULL
;
...
...
@@ -7754,7 +7754,7 @@ HRESULT WINAPI CreateDispTypeInfo(
pTypeLibImpl
->
pTypeInfo
=
pTIIface
;
pTypeLibImpl
->
TypeInfoCount
++
;
pTIClass
=
(
ITypeInfoImpl
*
)
ITypeInfo
_Constructor
();
pTIClass
=
ITypeInfoImpl
_Constructor
();
pTIClass
->
pTypeLib
=
pTypeLibImpl
;
pTIClass
->
index
=
1
;
pTIClass
->
Name
=
NULL
;
...
...
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