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
1f68feee
Commit
1f68feee
authored
Dec 06, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Dec 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OLE: Implement ITypeInfo_AddressOfMember.
parent
b0d8e06c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
1 deletion
+47
-1
typelib.c
dlls/oleaut32/typelib.c
+47
-1
No files found.
dlls/oleaut32/typelib.c
View file @
1f68feee
...
...
@@ -5671,7 +5671,53 @@ static HRESULT WINAPI ITypeInfo_fnAddressOfMember( ITypeInfo2 *iface,
MEMBERID
memid
,
INVOKEKIND
invKind
,
PVOID
*
ppv
)
{
ITypeInfoImpl
*
This
=
(
ITypeInfoImpl
*
)
iface
;
FIXME
(
"(%p) stub!
\n
"
,
This
);
HRESULT
hr
;
BSTR
dll
,
entry
;
WORD
ordinal
;
HMODULE
module
;
TRACE
(
"(%p)->(0x%lx, 0x%x, %p)
\n
"
,
This
,
memid
,
invKind
,
ppv
);
hr
=
ITypeInfo_GetDllEntry
(
iface
,
memid
,
invKind
,
&
dll
,
&
entry
,
&
ordinal
);
if
(
FAILED
(
hr
))
return
hr
;
module
=
LoadLibraryW
(
dll
);
if
(
!
module
)
{
ERR
(
"couldn't load %s
\n
"
,
debugstr_w
(
dll
));
SysFreeString
(
dll
);
if
(
entry
)
SysFreeString
(
entry
);
return
STG_E_FILENOTFOUND
;
}
/* FIXME: store library somewhere where we can free it */
if
(
entry
)
{
LPSTR
entryA
;
INT
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
entry
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
entryA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
entry
,
-
1
,
entryA
,
len
,
NULL
,
NULL
);
*
ppv
=
GetProcAddress
(
module
,
entryA
);
if
(
!*
ppv
)
ERR
(
"function not found %s
\n
"
,
debugstr_a
(
entryA
));
HeapFree
(
GetProcessHeap
(),
0
,
entryA
);
}
else
{
*
ppv
=
GetProcAddress
(
module
,
MAKEINTRESOURCEA
(
ordinal
));
if
(
!*
ppv
)
ERR
(
"function not found %d
\n
"
,
ordinal
);
}
SysFreeString
(
dll
);
if
(
entry
)
SysFreeString
(
entry
);
if
(
!*
ppv
)
return
TYPE_E_DLLFUNCTIONNOTFOUND
;
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