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
8c8b5da9
Commit
8c8b5da9
authored
Dec 30, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Update variable description and typeinfo size in ICreateTypeInfo2::SetVarHelpContext().
parent
59cc0d5c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
typelib.c
dlls/oleaut32/typelib.c
+2
-2
typelib.h
dlls/oleaut32/typelib.h
+1
-1
typelib2.c
dlls/oleaut32/typelib2.c
+18
-0
No files found.
dlls/oleaut32/typelib.c
View file @
8c8b5da9
...
...
@@ -2108,8 +2108,8 @@ static void MSFT_DoVars(TLBContext *pcx, ITypeInfoImpl *pTI, int cFuncs,
if
(
reclength
>
FIELD_OFFSET
(
MSFT_VarRecord
,
HelpContext
))
(
*
pptvd
)
->
HelpContext
=
pVarRec
->
HelpContext
;
if
(
reclength
>
FIELD_OFFSET
(
MSFT_VarRecord
,
o
HelpString
))
(
*
pptvd
)
->
HelpString
=
MSFT_ReadString
(
pcx
,
pVarRec
->
o
HelpString
);
if
(
reclength
>
FIELD_OFFSET
(
MSFT_VarRecord
,
HelpString
))
(
*
pptvd
)
->
HelpString
=
MSFT_ReadString
(
pcx
,
pVarRec
->
HelpString
);
if
(
reclength
>
FIELD_OFFSET
(
MSFT_VarRecord
,
HelpStringContext
))
(
*
pptvd
)
->
HelpStringContext
=
pVarRec
->
HelpStringContext
;
...
...
dlls/oleaut32/typelib.h
View file @
8c8b5da9
...
...
@@ -244,7 +244,7 @@ typedef struct {
/* optional attribute fields, the number of them is variable */
/* controlled by record length */
INT
HelpContext
;
INT
o
HelpString
;
INT
HelpString
;
INT
res9
;
/* unknown (-1) */
INT
oCustData
;
/* custom data for variable */
INT
HelpStringContext
;
...
...
dlls/oleaut32/typelib2.c
View file @
8c8b5da9
...
...
@@ -245,6 +245,23 @@ static inline INT ctl2_get_record_size(const CyclicList *iter)
return
iter
->
u
.
data
[
0
]
&
0xFFFF
;
}
static
void
ctl2_update_var_size
(
const
ICreateTypeInfo2Impl
*
This
,
CyclicList
*
var
,
int
size
)
{
int
old
=
ctl2_get_record_size
(
var
),
i
;
if
(
old
>=
size
)
return
;
/* initialize fields included in size but currently unused */
for
(
i
=
old
/
sizeof
(
int
);
i
<
(
size
/
sizeof
(
int
)
-
1
);
i
++
)
{
/* HelpContext/HelpStringContext being 0 means it's not set */
var
->
u
.
data
[
i
]
=
(
i
==
5
||
i
==
9
)
?
0
:
-
1
;
}
var
->
u
.
data
[
0
]
+=
size
-
old
;
This
->
typedata
->
next
->
u
.
val
+=
size
-
old
;
}
/* NOTE: entry always assumed to be a function */
static
inline
INVOKEKIND
ctl2_get_invokekind
(
const
CyclicList
*
func
)
{
...
...
@@ -2543,6 +2560,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnSetVarHelpContext(
{
if
(
index
--
==
0
)
{
ctl2_update_var_size
(
This
,
iter
,
FIELD_OFFSET
(
MSFT_VarRecord
,
HelpString
));
iter
->
u
.
data
[
5
]
=
context
;
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