Rob Shearman : shlwapi:
Fix IUnknown_OnFocusOCS to call OnFocus instead of GetExtendedControl.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Sep 10 10:18:02 CDT 2007
Module: wine
Branch: master
Commit: 5440889645fbfb44a46d2f4a315e9b97e1d7f6db
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5440889645fbfb44a46d2f4a315e9b97e1d7f6db
Author: Rob Shearman <rob at codeweavers.com>
Date: Fri Sep 7 15:26:40 2007 +0100
shlwapi: Fix IUnknown_OnFocusOCS to call OnFocus instead of GetExtendedControl.
---
dlls/shlwapi/ordinal.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/shlwapi/ordinal.c b/dlls/shlwapi/ordinal.c
index 8e950d8..b1cb585 100644
--- a/dlls/shlwapi/ordinal.c
+++ b/dlls/shlwapi/ordinal.c
@@ -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);
}
}
More information about the wine-cvs
mailing list