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
e9eb274d
Commit
e9eb274d
authored
Jun 11, 2020
by
Huw Davies
Committed by
Alexandre Julliard
Jun 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Return early if there is no matching funcdesc.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0a90d043
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
22 deletions
+18
-22
typelib.c
dlls/oleaut32/typelib.c
+18
-22
No files found.
dlls/oleaut32/typelib.c
View file @
e9eb274d
...
...
@@ -7805,28 +7805,24 @@ static HRESULT WINAPI ITypeInfo_fnGetDllEntry( ITypeInfo2 *iface, MEMBERID memid
return
TYPE_E_BADMODULEKIND
;
pFDesc
=
TLB_get_funcdesc_by_memberid
(
This
,
memid
);
if
(
pFDesc
){
dump_TypeInfo
(
This
);
if
(
TRACE_ON
(
ole
))
dump_TLBFuncDescOne
(
pFDesc
);
if
(
pBstrDllName
)
*
pBstrDllName
=
SysAllocString
(
TLB_get_bstr
(
This
->
DllName
));
if
(
!
IS_INTRESOURCE
(
pFDesc
->
Entry
)
&&
(
pFDesc
->
Entry
!=
(
void
*
)
-
1
))
{
if
(
pBstrName
)
*
pBstrName
=
SysAllocString
(
TLB_get_bstr
(
pFDesc
->
Entry
));
if
(
pwOrdinal
)
*
pwOrdinal
=
-
1
;
return
S_OK
;
}
if
(
pBstrName
)
*
pBstrName
=
NULL
;
if
(
pwOrdinal
)
*
pwOrdinal
=
LOWORD
(
pFDesc
->
Entry
);
return
S_OK
;
}
return
TYPE_E_ELEMENTNOTFOUND
;
if
(
!
pFDesc
)
return
TYPE_E_ELEMENTNOTFOUND
;
dump_TypeInfo
(
This
);
if
(
TRACE_ON
(
ole
))
dump_TLBFuncDescOne
(
pFDesc
);
if
(
pBstrDllName
)
*
pBstrDllName
=
SysAllocString
(
TLB_get_bstr
(
This
->
DllName
));
if
(
!
IS_INTRESOURCE
(
pFDesc
->
Entry
)
&&
(
pFDesc
->
Entry
!=
(
void
*
)
-
1
))
{
if
(
pBstrName
)
*
pBstrName
=
SysAllocString
(
TLB_get_bstr
(
pFDesc
->
Entry
));
if
(
pwOrdinal
)
*
pwOrdinal
=
-
1
;
}
else
{
if
(
pBstrName
)
*
pBstrName
=
NULL
;
if
(
pwOrdinal
)
*
pwOrdinal
=
LOWORD
(
pFDesc
->
Entry
);
}
return
S_OK
;
}
/* internal function to make the inherited interfaces' methods appear
...
...
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