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
0c12e266
Commit
0c12e266
authored
Feb 21, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Added correct implementation of IProvideClassInfo::GetGUID.
parent
b24e69dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
20 deletions
+9
-20
classinfo.c
dlls/shdocvw/classinfo.c
+9
-20
No files found.
dlls/shdocvw/classinfo.c
View file @
0c12e266
...
...
@@ -60,34 +60,23 @@ static HRESULT WINAPI ProvideClassInfo_GetClassInfo(IProvideClassInfo2 *iface, L
return
E_NOTIMPL
;
}
/* Get the IID for generic default event callbacks. This IID will
* in theory be used to later query for an IConnectionPoint to connect
* an event sink (callback implementation in the OLE control site)
* to this control.
*/
static
HRESULT
WINAPI
ProvideClassInfo_GetGUID
(
IProvideClassInfo2
*
iface
,
DWORD
dwGuidKind
,
GUID
*
pGUID
)
{
WebBrowser
*
This
=
CLASSINFO_THIS
(
iface
);
FIXM
E
(
"(%p)->(%ld %p)
\n
"
,
This
,
dwGuidKind
,
pGUID
);
TRAC
E
(
"(%p)->(%ld %p)
\n
"
,
This
,
dwGuidKind
,
pGUID
);
if
(
dwGuidKind
!=
GUIDKIND_DEFAULT_SOURCE_DISP_IID
)
{
FIXME
(
"Requested unsupported GUID type: %ld
\n
"
,
dwGuidKind
);
return
E_FAIL
;
/* Is there a better return type here? */
}
if
(
!
pGUID
)
return
E_POINTER
;
/* FIXME: Returning IPropertyNotifySink interface, but should really
* return a more generic event set (???) dispinterface.
* However, this hack, allows a control site to return with success
* (MFC's COleControlSite falls back to older IProvideClassInfo interface
* if GetGUID() fails to return a non-NULL GUID).
*/
memcpy
(
pGUID
,
&
IID_IPropertyNotifySink
,
sizeof
(
GUID
));
FIXME
(
"Wrongly returning IPropertyNotifySink interface %s
\n
"
,
debugstr_guid
(
pGUID
));
if
(
dwGuidKind
!=
GUIDKIND_DEFAULT_SOURCE_DISP_IID
)
{
WARN
(
"Wrong GUID type: %ld
\n
"
,
dwGuidKind
);
memcpy
(
pGUID
,
&
IID_NULL
,
sizeof
(
GUID
));
return
E_FAIL
;
}
memcpy
(
pGUID
,
&
DIID_DWebBrowserEvents2
,
sizeof
(
GUID
));
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