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
e8d117f5
Commit
e8d117f5
authored
Feb 24, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix importfile searching in ctl2_alloc_importinfo.
parent
b6cf636c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
typelib2.c
dlls/oleaut32/typelib2.c
+10
-9
No files found.
dlls/oleaut32/typelib2.c
View file @
e8d117f5
...
...
@@ -692,19 +692,20 @@ static int ctl2_alloc_string(
* Failure: -1 (this is invariably an out of memory condition).
*/
static
int
ctl2_alloc_importinfo
(
ICreateTypeLib2Impl
*
This
,
/* [I] The type library to allocate in. */
MSFT_ImpInfo
*
impinfo
)
/* [I] The import information to store. */
ICreateTypeLib2Impl
*
This
,
/* [I] The type library to allocate in. */
MSFT_ImpInfo
*
impinfo
)
/* [I] The import information to store. */
{
int
offset
;
MSFT_ImpInfo
*
impinfo_space
;
for
(
offset
=
0
;
offset
<
This
->
typelib_segdir
[
MSFT_SEG_IMPORTINFO
].
length
;
offset
+=
sizeof
(
MSFT_ImpInfo
))
{
if
(
!
memcmp
(
&
(
This
->
typelib_segment_data
[
MSFT_SEG_IMPORTINFO
][
offset
]),
impinfo
,
sizeof
(
MSFT_ImpInfo
)))
{
return
offset
;
}
impinfo_space
=
(
MSFT_ImpInfo
*
)
&
This
->
typelib_segment_data
[
MSFT_SEG_IMPORTINFO
][
0
];
for
(
offset
=
0
;
offset
<
This
->
typelib_segdir
[
MSFT_SEG_IMPORTINFO
].
length
;
offset
+=
sizeof
(
MSFT_ImpInfo
))
{
if
(
impinfo_space
->
oImpFile
==
impinfo
->
oImpFile
&&
impinfo_space
->
oGuid
==
impinfo
->
oGuid
)
return
offset
;
impinfo_space
+=
1
;
}
impinfo
->
flags
|=
This
->
typelib_header
.
nimpinfos
++
;
...
...
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