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
54408896
Commit
54408896
authored
Sep 07, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Sep 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Fix IUnknown_OnFocusOCS to call OnFocus instead of GetExtendedControl.
parent
5dadeeb2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ordinal.c
dlls/shlwapi/ordinal.c
+5
-5
No files found.
dlls/shlwapi/ordinal.c
View file @
54408896
...
...
@@ -1775,29 +1775,29 @@ HRESULT WINAPI IUnknown_TranslateAcceleratorOCS(IUnknown *lpUnknown, LPMSG lpMsg
/*************************************************************************
* @ [SHLWAPI.189]
*
* Call IOleControlSite_
GetExtendedControl
() on an object.
* Call IOleControlSite_
OnFocus
() on an object.
*
* PARAMS
* lpUnknown [I] Object supporting the IOleControlSite interface.
*
lppDisp [O] Destination for resulting IDispatch
.
*
fGotFocus [I] Whether focus was gained (TRUE) or lost (FALSE)
.
*
* RETURNS
* Success: S_OK.
* Failure: An HRESULT error code, or E_FAIL if lpUnknown is NULL.
*/
DWORD
WINAPI
IUnknown_OnFocusOCS
(
IUnknown
*
lpUnknown
,
IDispatch
**
lppDisp
)
HRESULT
WINAPI
IUnknown_OnFocusOCS
(
IUnknown
*
lpUnknown
,
BOOL
fGotFocus
)
{
IOleControlSite
*
lpCSite
=
NULL
;
HRESULT
hRet
=
E_FAIL
;
TRACE
(
"(%p,%
p)
\n
"
,
lpUnknown
,
lppDisp
);
TRACE
(
"(%p,%
s)
\n
"
,
lpUnknown
,
fGotFocus
?
"TRUE"
:
"FALSE"
);
if
(
lpUnknown
)
{
hRet
=
IUnknown_QueryInterface
(
lpUnknown
,
&
IID_IOleControlSite
,
(
void
**
)
&
lpCSite
);
if
(
SUCCEEDED
(
hRet
)
&&
lpCSite
)
{
hRet
=
IOleControlSite_
GetExtendedControl
(
lpCSite
,
lppDisp
);
hRet
=
IOleControlSite_
OnFocus
(
lpCSite
,
fGotFocus
);
IOleControlSite_Release
(
lpCSite
);
}
}
...
...
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