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
e11f637c
Commit
e11f637c
authored
Apr 07, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix a couple of typelib test failures on 64-bit.
parent
9b471fbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
typelib.c
dlls/oleaut32/tests/typelib.c
+5
-3
typelib2.c
dlls/oleaut32/typelib2.c
+2
-2
No files found.
dlls/oleaut32/tests/typelib.c
View file @
e11f637c
...
...
@@ -1373,7 +1373,8 @@ static void test_CreateTypeLib(void) {
ok
(
typeattr
->
cFuncs
==
1
,
"cFuncs = %d
\n
"
,
typeattr
->
cFuncs
);
ok
(
typeattr
->
cVars
==
0
,
"cVars = %d
\n
"
,
typeattr
->
cVars
);
ok
(
typeattr
->
cImplTypes
==
1
,
"cImplTypes = %d
\n
"
,
typeattr
->
cImplTypes
);
ok
(
typeattr
->
cbSizeVft
==
32
,
"cbSizeVft = %d
\n
"
,
typeattr
->
cbSizeVft
);
ok
(
typeattr
->
cbSizeVft
==
32
||
broken
(
typeattr
->
cbSizeVft
==
7
*
sizeof
(
void
*
)
+
4
),
/* xp64 */
"cbSizeVft = %d
\n
"
,
typeattr
->
cbSizeVft
);
ok
(
typeattr
->
cbAlignment
==
4
,
"cbAlignment = %d
\n
"
,
typeattr
->
cbAlignment
);
ok
(
typeattr
->
wTypeFlags
==
(
TYPEFLAG_FDISPATCHABLE
|
TYPEFLAG_FDUAL
),
"wTypeFlags = %d
\n
"
,
typeattr
->
wTypeFlags
);
ok
(
typeattr
->
wMajorVerNum
==
0
,
"wMajorVerNum = %d
\n
"
,
typeattr
->
wMajorVerNum
);
...
...
@@ -1395,7 +1396,7 @@ static void test_CreateTypeLib(void) {
ok
(
typeattr
->
cFuncs
==
8
,
"cFuncs = %d
\n
"
,
typeattr
->
cFuncs
);
ok
(
typeattr
->
cVars
==
0
,
"cVars = %d
\n
"
,
typeattr
->
cVars
);
ok
(
typeattr
->
cImplTypes
==
1
,
"cImplTypes = %d
\n
"
,
typeattr
->
cImplTypes
);
ok
(
typeattr
->
cbSizeVft
==
28
,
"cbSizeVft = %d
\n
"
,
typeattr
->
cbSizeVft
);
ok
(
typeattr
->
cbSizeVft
==
7
*
sizeof
(
void
*
)
,
"cbSizeVft = %d
\n
"
,
typeattr
->
cbSizeVft
);
ok
(
typeattr
->
cbAlignment
==
4
,
"cbAlignment = %d
\n
"
,
typeattr
->
cbAlignment
);
ok
(
typeattr
->
wTypeFlags
==
(
TYPEFLAG_FDISPATCHABLE
|
TYPEFLAG_FDUAL
),
"wTypeFlags = %d
\n
"
,
typeattr
->
wTypeFlags
);
ok
(
typeattr
->
wMajorVerNum
==
0
,
"wMajorVerNum = %d
\n
"
,
typeattr
->
wMajorVerNum
);
...
...
@@ -1414,7 +1415,8 @@ static void test_CreateTypeLib(void) {
ok
(
typeattr
->
cFuncs
==
11
,
"cFuncs = %d
\n
"
,
typeattr
->
cFuncs
);
ok
(
typeattr
->
cVars
==
0
,
"cVars = %d
\n
"
,
typeattr
->
cVars
);
ok
(
typeattr
->
cImplTypes
==
1
,
"cImplTypes = %d
\n
"
,
typeattr
->
cImplTypes
);
ok
(
typeattr
->
cbSizeVft
==
56
,
"cbSizeVft = %d
\n
"
,
typeattr
->
cbSizeVft
);
ok
(
typeattr
->
cbSizeVft
==
56
||
broken
(
typeattr
->
cbSizeVft
==
3
*
sizeof
(
void
*
)
+
44
),
/* xp64 */
"cbSizeVft = %d
\n
"
,
typeattr
->
cbSizeVft
);
ok
(
typeattr
->
cbAlignment
==
4
,
"cbAlignment = %d
\n
"
,
typeattr
->
cbAlignment
);
ok
(
typeattr
->
wTypeFlags
==
0
,
"wTypeFlags = %d
\n
"
,
typeattr
->
wTypeFlags
);
ok
(
typeattr
->
wMajorVerNum
==
0
,
"wMajorVerNum = %d
\n
"
,
typeattr
->
wMajorVerNum
);
...
...
dlls/oleaut32/typelib2.c
View file @
e11f637c
...
...
@@ -2456,7 +2456,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnLayOut(
return
hres
;
}
This
->
typeinfo
->
cbSizeVft
=
typeattr
->
cbSizeVft
;
This
->
typeinfo
->
cbSizeVft
=
typeattr
->
cbSizeVft
*
4
/
sizeof
(
void
*
)
;
ITypeInfo_ReleaseTypeAttr
(
inherited
,
typeattr
);
ITypeInfo_Release
(
inherited
);
...
...
@@ -2928,7 +2928,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetTypeAttr(
(
*
ppTypeAttr
)
->
cFuncs
+=
7
;
(
*
ppTypeAttr
)
->
cVars
=
This
->
typeinfo
->
cElement
>>
16
;
(
*
ppTypeAttr
)
->
cImplTypes
=
This
->
typeinfo
->
cImplTypes
;
(
*
ppTypeAttr
)
->
cbSizeVft
=
This
->
typekind
==
TKIND_DISPATCH
?
28
:
This
->
typeinfo
->
cbSizeVft
;
(
*
ppTypeAttr
)
->
cbSizeVft
=
This
->
typekind
==
TKIND_DISPATCH
?
7
*
sizeof
(
void
*
)
:
This
->
typeinfo
->
cbSizeVft
;
(
*
ppTypeAttr
)
->
cbAlignment
=
(
This
->
typeinfo
->
typekind
>>
11
)
&
0x1f
;
(
*
ppTypeAttr
)
->
wTypeFlags
=
This
->
typeinfo
->
flags
;
(
*
ppTypeAttr
)
->
wMajorVerNum
=
This
->
typeinfo
->
version
&
0xffff
;
...
...
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