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
e8f4fff3
Commit
e8f4fff3
authored
May 13, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
May 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: res50 is number of impinfos. Fix its usage.
parent
735c4343
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
typelib.h
dlls/oleaut32/typelib.h
+1
-1
typelib2.c
dlls/oleaut32/typelib2.c
+3
-2
No files found.
dlls/oleaut32/typelib.h
View file @
e8f4fff3
...
...
@@ -79,7 +79,7 @@ typedef struct tagMSFT_Header {
INT
res44
;
/* unknown always: 0x20 (guid hash size?) */
INT
res48
;
/* unknown always: 0x80 (name hash size?) */
INT
dispatchpos
;
/* HREFTYPE to IDispatch, or -1 if no IDispatch */
/*0x50*/
INT
res50
;
/* is zero becomes one when an interface is derived
*/
/*0x50*/
INT
nimpinfos
;
/* number of impinfos
*/
}
MSFT_Header
;
/* segments in the type lib file have a structure like this: */
...
...
dlls/oleaut32/typelib2.c
View file @
e8f4fff3
...
...
@@ -232,7 +232,7 @@ static void ctl2_init_header(
This
->
typelib_header
.
res44
=
0x20
;
This
->
typelib_header
.
res48
=
0x80
;
This
->
typelib_header
.
dispatchpos
=
-
1
;
This
->
typelib_header
.
res50
=
0
;
This
->
typelib_header
.
nimpinfos
=
0
;
}
/****************************************************************************
...
...
@@ -677,6 +677,8 @@ static int ctl2_alloc_importinfo(
}
}
impinfo
->
flags
|=
This
->
typelib_header
.
nimpinfos
++
;
offset
=
ctl2_alloc_segment
(
This
,
MSFT_SEG_IMPORTINFO
,
sizeof
(
MSFT_ImpInfo
),
0
);
if
(
offset
==
-
1
)
return
-
1
;
...
...
@@ -1252,7 +1254,6 @@ static HRESULT WINAPI ICreateTypeInfo2_fnSetTypeFlags(ICreateTypeInfo2 *iface, U
ctl2_alloc_importinfo
(
This
->
typelib
,
&
impinfo
);
This
->
typelib
->
typelib_header
.
dispatchpos
=
1
;
This
->
typelib
->
typelib_header
.
res50
=
1
;
This
->
typeinfo
->
typekind
|=
0x10
;
This
->
typeinfo
->
typekind
&=
~
0x0f
;
...
...
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