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
cc29cad2
Commit
cc29cad2
authored
Aug 12, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: 64-bit typelib fixes.
parent
f1398510
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
typelib.c
dlls/oleaut32/typelib.c
+15
-1
No files found.
dlls/oleaut32/typelib.c
View file @
cc29cad2
...
...
@@ -2537,10 +2537,18 @@ static ITypeInfoImpl * MSFT_DoTypeInfo(
ptiRet
->
lcid
=
pLibInfo
->
set_lcid
;
/* FIXME: correct? */
ptiRet
->
lpstrSchema
=
NULL
;
/* reserved */
ptiRet
->
cbSizeInstance
=
tiBase
.
size
;
#ifdef _WIN64
if
(
pLibInfo
->
syskind
==
SYS_WIN32
)
ptiRet
->
cbSizeInstance
=
sizeof
(
void
*
);
#endif
ptiRet
->
typekind
=
tiBase
.
typekind
&
0xF
;
ptiRet
->
cFuncs
=
LOWORD
(
tiBase
.
cElement
);
ptiRet
->
cVars
=
HIWORD
(
tiBase
.
cElement
);
ptiRet
->
cbAlignment
=
(
tiBase
.
typekind
>>
11
)
&
0x1F
;
/* there are more flags there */
#ifdef _WIN64
if
(
pLibInfo
->
syskind
==
SYS_WIN32
)
ptiRet
->
cbAlignment
=
8
;
#endif
ptiRet
->
wTypeFlags
=
tiBase
.
flags
;
ptiRet
->
wMajorVerNum
=
LOWORD
(
tiBase
.
version
);
ptiRet
->
wMinorVerNum
=
HIWORD
(
tiBase
.
version
);
...
...
@@ -8484,7 +8492,7 @@ static HRESULT WINAPI ICreateTypeLib2_fnCreateTypeInfo(ICreateTypeLib2 *iface,
case
TKIND_INTERFACE
:
case
TKIND_DISPATCH
:
case
TKIND_COCLASS
:
info
->
cbSizeInstance
=
4
;
info
->
cbSizeInstance
=
This
->
ptr_size
;
break
;
case
TKIND_RECORD
:
case
TKIND_UNION
:
...
...
@@ -10199,6 +10207,12 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddFuncDesc(ICreateTypeInfo2 *iface,
!
funcDesc
->
cParams
)
return
TYPE_E_INCONSISTENTPROPFUNCS
;
#ifdef _WIN64
if
(
This
->
pTypeLib
->
syskind
==
SYS_WIN64
&&
funcDesc
->
oVft
%
8
!=
0
)
return
E_INVALIDARG
;
#endif
memset
(
&
tmp_func_desc
,
0
,
sizeof
(
tmp_func_desc
));
TLBFuncDesc_Constructor
(
&
tmp_func_desc
);
...
...
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