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
522662fa
Commit
522662fa
authored
Jan 29, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix the typelib tests on 64-bit platforms.
parent
5d64f825
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
typelib.c
dlls/oleaut32/tests/typelib.c
+14
-14
typelib.c
dlls/oleaut32/typelib.c
+6
-6
No files found.
dlls/oleaut32/tests/typelib.c
View file @
522662fa
...
...
@@ -399,7 +399,7 @@ static void test_CreateDispTypeInfo(void)
ok
(
pFuncDesc
->
invkind
==
methdata
[
1
].
wFlags
,
"invkind %d
\n
"
,
pFuncDesc
->
invkind
);
ok
(
pFuncDesc
->
callconv
==
methdata
[
1
].
cc
,
"callconv %d
\n
"
,
pFuncDesc
->
callconv
);
ok
(
pFuncDesc
->
cParams
==
methdata
[
1
].
cArgs
,
"cParams %d
\n
"
,
pFuncDesc
->
cParams
);
ok
(
pFuncDesc
->
oVft
==
4
,
"oVft %d
\n
"
,
pFuncDesc
->
oVft
);
ok
(
pFuncDesc
->
oVft
==
sizeof
(
void
*
)
,
"oVft %d
\n
"
,
pFuncDesc
->
oVft
);
ok
(
pFuncDesc
->
wFuncFlags
==
0
,
"oVft %d
\n
"
,
pFuncDesc
->
wFuncFlags
);
ok
(
pFuncDesc
->
elemdescFunc
.
tdesc
.
vt
==
VT_I4
,
"ret vt %x
\n
"
,
pFuncDesc
->
elemdescFunc
.
tdesc
.
vt
);
ITypeInfo_ReleaseFuncDesc
(
pTI2
,
pFuncDesc
);
...
...
@@ -410,7 +410,7 @@ static void test_CreateDispTypeInfo(void)
ok
(
pFuncDesc
->
invkind
==
methdata
[
2
].
wFlags
,
"invkind %d
\n
"
,
pFuncDesc
->
invkind
);
ok
(
pFuncDesc
->
callconv
==
methdata
[
2
].
cc
,
"callconv %d
\n
"
,
pFuncDesc
->
callconv
);
ok
(
pFuncDesc
->
cParams
==
methdata
[
2
].
cArgs
,
"cParams %d
\n
"
,
pFuncDesc
->
cParams
);
ok
(
pFuncDesc
->
oVft
==
12
,
"oVft %d
\n
"
,
pFuncDesc
->
oVft
);
ok
(
pFuncDesc
->
oVft
==
3
*
sizeof
(
void
*
)
,
"oVft %d
\n
"
,
pFuncDesc
->
oVft
);
ok
(
pFuncDesc
->
wFuncFlags
==
0
,
"oVft %d
\n
"
,
pFuncDesc
->
wFuncFlags
);
ok
(
pFuncDesc
->
elemdescFunc
.
tdesc
.
vt
==
VT_HRESULT
,
"ret vt %x
\n
"
,
pFuncDesc
->
elemdescFunc
.
tdesc
.
vt
);
ok
(
pFuncDesc
->
lprgelemdescParam
[
0
].
tdesc
.
vt
==
VT_I4
,
"parm 0 vt %x
\n
"
,
pFuncDesc
->
lprgelemdescParam
[
0
].
tdesc
.
vt
);
...
...
@@ -423,7 +423,7 @@ static void test_CreateDispTypeInfo(void)
ok
(
pFuncDesc
->
invkind
==
methdata
[
3
].
wFlags
,
"invkind %d
\n
"
,
pFuncDesc
->
invkind
);
ok
(
pFuncDesc
->
callconv
==
methdata
[
3
].
cc
,
"callconv %d
\n
"
,
pFuncDesc
->
callconv
);
ok
(
pFuncDesc
->
cParams
==
methdata
[
3
].
cArgs
,
"cParams %d
\n
"
,
pFuncDesc
->
cParams
);
ok
(
pFuncDesc
->
oVft
==
16
,
"oVft %d
\n
"
,
pFuncDesc
->
oVft
);
ok
(
pFuncDesc
->
oVft
==
4
*
sizeof
(
void
*
)
,
"oVft %d
\n
"
,
pFuncDesc
->
oVft
);
ok
(
pFuncDesc
->
wFuncFlags
==
0
,
"oVft %d
\n
"
,
pFuncDesc
->
wFuncFlags
);
ok
(
pFuncDesc
->
elemdescFunc
.
tdesc
.
vt
==
VT_I4
,
"ret vt %x
\n
"
,
pFuncDesc
->
elemdescFunc
.
tdesc
.
vt
);
ITypeInfo_ReleaseFuncDesc
(
pTI2
,
pFuncDesc
);
...
...
@@ -703,7 +703,7 @@ static void test_inheritance(void)
hr
=
ITypeInfo_GetTypeAttr
(
pTI
,
&
pTA
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pTA
->
typekind
==
TKIND_DISPATCH
,
"kind %04x
\n
"
,
pTA
->
typekind
);
ok
(
pTA
->
cbSizeVft
==
28
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
cbSizeVft
==
7
*
sizeof
(
void
*
)
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
wTypeFlags
==
TYPEFLAG_FDISPATCHABLE
,
"typeflags %x
\n
"
,
pTA
->
wTypeFlags
);
if
(
use_midl_tlb
)
{
ok
(
pTA
->
cFuncs
==
6
,
"cfuncs %d
\n
"
,
pTA
->
cFuncs
);
...
...
@@ -725,7 +725,7 @@ if(use_midl_tlb) {
hr
=
ITypeInfo_GetFuncDesc
(
pTI
,
5
,
&
pFD
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pFD
->
memid
==
0x60020000
,
"memid %08x
\n
"
,
pFD
->
memid
);
ok
(
pFD
->
oVft
==
20
,
"oVft %d
\n
"
,
pFD
->
oVft
);
ok
(
pFD
->
oVft
==
5
*
sizeof
(
void
*
)
,
"oVft %d
\n
"
,
pFD
->
oVft
);
ITypeInfo_ReleaseFuncDesc
(
pTI
,
pFD
);
}
ITypeInfo_Release
(
pTI
);
...
...
@@ -738,7 +738,7 @@ if(use_midl_tlb) {
hr
=
ITypeInfo_GetTypeAttr
(
pTI
,
&
pTA
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pTA
->
typekind
==
TKIND_DISPATCH
,
"kind %04x
\n
"
,
pTA
->
typekind
);
ok
(
pTA
->
cbSizeVft
==
28
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
cbSizeVft
==
7
*
sizeof
(
void
*
)
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
wTypeFlags
==
TYPEFLAG_FDISPATCHABLE
,
"typeflags %x
\n
"
,
pTA
->
wTypeFlags
);
ok
(
pTA
->
cFuncs
==
1
,
"cfuncs %d
\n
"
,
pTA
->
cFuncs
);
ok
(
pTA
->
cImplTypes
==
1
,
"cimpltypes %d
\n
"
,
pTA
->
cImplTypes
);
...
...
@@ -768,7 +768,7 @@ if(use_midl_tlb) {
hr
=
ITypeInfo_GetTypeAttr
(
pTI
,
&
pTA
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pTA
->
typekind
==
TKIND_DISPATCH
,
"kind %04x
\n
"
,
pTA
->
typekind
);
ok
(
pTA
->
cbSizeVft
==
28
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
cbSizeVft
==
7
*
sizeof
(
void
*
)
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
if
(
use_midl_tlb
)
{
ok
(
pTA
->
wTypeFlags
==
TYPEFLAG_FDUAL
,
"typeflags %x
\n
"
,
pTA
->
wTypeFlags
);
}
...
...
@@ -799,7 +799,7 @@ if(use_midl_tlb) {
hr
=
ITypeInfo_GetTypeAttr
(
pTI
,
&
pTA
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pTA
->
typekind
==
TKIND_DISPATCH
,
"kind %04x
\n
"
,
pTA
->
typekind
);
ok
(
pTA
->
cbSizeVft
==
28
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
cbSizeVft
==
7
*
sizeof
(
void
*
)
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
wTypeFlags
==
(
TYPEFLAG_FDISPATCHABLE
|
TYPEFLAG_FDUAL
),
"typeflags %x
\n
"
,
pTA
->
wTypeFlags
);
ok
(
pTA
->
cFuncs
==
10
,
"cfuncs %d
\n
"
,
pTA
->
cFuncs
);
ok
(
pTA
->
cImplTypes
==
1
,
"cimpltypes %d
\n
"
,
pTA
->
cImplTypes
);
...
...
@@ -827,7 +827,7 @@ if(use_midl_tlb) {
hr
=
ITypeInfo_GetTypeAttr
(
pTI
,
&
pTA
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pTA
->
typekind
==
TKIND_DISPATCH
,
"kind %04x
\n
"
,
pTA
->
typekind
);
ok
(
pTA
->
cbSizeVft
==
28
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
cbSizeVft
==
7
*
sizeof
(
void
*
)
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
wTypeFlags
==
TYPEFLAG_FDISPATCHABLE
,
"typeflags %x
\n
"
,
pTA
->
wTypeFlags
);
if
(
use_midl_tlb
)
{
ok
(
pTA
->
cFuncs
==
3
,
"cfuncs %d
\n
"
,
pTA
->
cFuncs
);
...
...
@@ -851,7 +851,7 @@ if(use_midl_tlb) {
hr
=
ITypeInfo_GetFuncDesc
(
pTI
,
2
,
&
pFD
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pFD
->
memid
==
0x60010000
,
"memid %08x
\n
"
,
pFD
->
memid
);
ok
(
pFD
->
oVft
==
8
,
"oVft %d
\n
"
,
pFD
->
oVft
);
ok
(
pFD
->
oVft
==
2
*
sizeof
(
void
*
)
,
"oVft %d
\n
"
,
pFD
->
oVft
);
ITypeInfo_ReleaseFuncDesc
(
pTI
,
pFD
);
}
ITypeInfo_Release
(
pTI
);
...
...
@@ -863,7 +863,7 @@ if(use_midl_tlb) {
hr
=
ITypeInfo_GetTypeAttr
(
pTI
,
&
pTA
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pTA
->
typekind
==
TKIND_DISPATCH
,
"kind %04x
\n
"
,
pTA
->
typekind
);
ok
(
pTA
->
cbSizeVft
==
28
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
cbSizeVft
==
7
*
sizeof
(
void
*
)
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
wTypeFlags
==
TYPEFLAG_FDISPATCHABLE
,
"typeflags %x
\n
"
,
pTA
->
wTypeFlags
);
if
(
use_midl_tlb
)
{
ok
(
pTA
->
cFuncs
==
10
,
"cfuncs %d
\n
"
,
pTA
->
cFuncs
);
...
...
@@ -885,7 +885,7 @@ if(use_midl_tlb) {
hr
=
ITypeInfo_GetFuncDesc
(
pTI
,
9
,
&
pFD
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pFD
->
memid
==
0x1236
,
"memid %08x
\n
"
,
pFD
->
memid
);
ok
(
pFD
->
oVft
==
36
,
"oVft %d
\n
"
,
pFD
->
oVft
);
ok
(
pFD
->
oVft
==
9
*
sizeof
(
void
*
)
,
"oVft %d
\n
"
,
pFD
->
oVft
);
ITypeInfo_ReleaseFuncDesc
(
pTI
,
pFD
);
}
ITypeInfo_Release
(
pTI
);
...
...
@@ -898,7 +898,7 @@ if(use_midl_tlb) {
hr
=
ITypeInfo_GetTypeAttr
(
pTI
,
&
pTA
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pTA
->
typekind
==
TKIND_INTERFACE
,
"kind %04x
\n
"
,
pTA
->
typekind
);
ok
(
pTA
->
cbSizeVft
==
24
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
cbSizeVft
==
6
*
sizeof
(
void
*
)
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
wTypeFlags
==
0
,
"typeflags %x
\n
"
,
pTA
->
wTypeFlags
);
if
(
use_midl_tlb
)
{
ok
(
pTA
->
cFuncs
==
1
,
"cfuncs %d
\n
"
,
pTA
->
cFuncs
);
...
...
@@ -911,7 +911,7 @@ if(use_midl_tlb) {
hr
=
ITypeInfo_GetFuncDesc
(
pTI
,
0
,
&
pFD
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pFD
->
memid
==
0x60020000
,
"memid %08x
\n
"
,
pFD
->
memid
);
ok
(
pFD
->
oVft
==
20
,
"oVft %d
\n
"
,
pFD
->
oVft
);
ok
(
pFD
->
oVft
==
5
*
sizeof
(
void
*
)
,
"oVft %d
\n
"
,
pFD
->
oVft
);
ITypeInfo_ReleaseFuncDesc
(
pTI
,
pFD
);
}
ITypeInfo_Release
(
pTI
);
...
...
dlls/oleaut32/typelib.c
View file @
522662fa
...
...
@@ -1887,7 +1887,7 @@ MSFT_DoFuncs(TLBContext* pcx,
(
*
pptfd
)
->
funcdesc
.
callconv
=
(
pFuncRec
->
FKCCIC
)
>>
8
&
0xF
;
(
*
pptfd
)
->
funcdesc
.
cParams
=
pFuncRec
->
nrargs
;
(
*
pptfd
)
->
funcdesc
.
cParamsOpt
=
pFuncRec
->
nroargs
;
(
*
pptfd
)
->
funcdesc
.
oVft
=
pFuncRec
->
VtableOffset
;
(
*
pptfd
)
->
funcdesc
.
oVft
=
(
pFuncRec
->
VtableOffset
*
sizeof
(
void
*
))
/
4
;
(
*
pptfd
)
->
funcdesc
.
wFuncFlags
=
LOWORD
(
pFuncRec
->
Flags
)
;
MSFT_GetTdesc
(
pcx
,
...
...
@@ -2146,7 +2146,7 @@ static ITypeInfoImpl * MSFT_DoTypeInfo(
ptiRet
->
TypeAttr
.
wMajorVerNum
=
LOWORD
(
tiBase
.
version
);
ptiRet
->
TypeAttr
.
wMinorVerNum
=
HIWORD
(
tiBase
.
version
);
ptiRet
->
TypeAttr
.
cImplTypes
=
tiBase
.
cImplTypes
;
ptiRet
->
TypeAttr
.
cbSizeVft
=
tiBase
.
cbSizeVft
;
/* FIXME: this is only the non inherited part */
ptiRet
->
TypeAttr
.
cbSizeVft
=
(
tiBase
.
cbSizeVft
*
sizeof
(
void
*
))
/
4
;
/* FIXME: this is only the non inherited part */
if
(
ptiRet
->
TypeAttr
.
typekind
==
TKIND_ALIAS
)
MSFT_GetTdesc
(
pcx
,
tiBase
.
datatype1
,
&
ptiRet
->
TypeAttr
.
tdescAlias
,
ptiRet
);
...
...
@@ -3908,7 +3908,7 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength)
(
*
ppTypeInfoImpl
)
->
TypeAttr
.
cbAlignment
=
pTITail
->
cbAlignment
;
(
*
ppTypeInfoImpl
)
->
TypeAttr
.
cbSizeInstance
=
pTITail
->
cbSizeInstance
;
(
*
ppTypeInfoImpl
)
->
TypeAttr
.
cbSizeVft
=
pTITail
->
cbSizeVft
;
(
*
ppTypeInfoImpl
)
->
TypeAttr
.
cbSizeVft
=
(
pTITail
->
cbSizeVft
*
sizeof
(
void
*
))
/
4
;
switch
(
pTIHeader
->
typekind
)
{
case
TKIND_ENUM
:
...
...
@@ -4981,9 +4981,9 @@ static HRESULT WINAPI ITypeInfo_fnGetTypeAttr( ITypeInfo2 *iface,
&
This
->
TypeAttr
.
tdescAlias
,
(
void
*
)(
*
ppTypeAttr
+
1
));
if
((
*
ppTypeAttr
)
->
typekind
==
TKIND_DISPATCH
)
{
(
*
ppTypeAttr
)
->
cFuncs
=
(
*
ppTypeAttr
)
->
cbSizeVft
/
4
;
/* This should include all the inherited
funcs */
(
*
ppTypeAttr
)
->
cbSizeVft
=
28
;
/* This is always the size of IDispatch's vtbl */
/* This should include all the inherited funcs */
(
*
ppTypeAttr
)
->
cFuncs
=
(
*
ppTypeAttr
)
->
cbSizeVft
/
sizeof
(
void
*
);
(
*
ppTypeAttr
)
->
cbSizeVft
=
7
*
sizeof
(
void
*
)
;
/* This is always the size of IDispatch's vtbl */
(
*
ppTypeAttr
)
->
wTypeFlags
&=
~
TYPEFLAG_FOLEAUTOMATION
;
}
return
S_OK
;
...
...
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