Nikolay Sivov : hlink: Implement IHlinkBrowseContext_SetCurrentHlink().
Alexandre Julliard
julliard at winehq.org
Wed Mar 27 15:40:05 CDT 2013
Module: wine
Branch: master
Commit: 29d37bd71468f5d10abe6e1bceb1eab1e17f8132
URL: http://source.winehq.org/git/wine.git/?a=commit;h=29d37bd71468f5d10abe6e1bceb1eab1e17f8132
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Mar 27 10:41:07 2013 +0400
hlink: Implement IHlinkBrowseContext_SetCurrentHlink().
---
dlls/hlink/browse_ctx.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/dlls/hlink/browse_ctx.c b/dlls/hlink/browse_ctx.c
index d09d59d..d90aad9 100644
--- a/dlls/hlink/browse_ctx.c
+++ b/dlls/hlink/browse_ctx.c
@@ -295,11 +295,19 @@ static HRESULT WINAPI IHlinkBC_GetHlink(IHlinkBrowseContext* iface, ULONG hlid,
return S_OK;
}
-static HRESULT WINAPI IHlinkBC_SetCurrentHlink( IHlinkBrowseContext* iface,
- ULONG uHLID)
+static HRESULT WINAPI IHlinkBC_SetCurrentHlink(IHlinkBrowseContext* iface, ULONG hlid)
{
- FIXME("\n");
- return E_NOTIMPL;
+ HlinkBCImpl *This = impl_from_IHlinkBrowseContext(iface);
+ struct link_entry *link;
+
+ TRACE("(%p)->(0x%08x)\n", This, hlid);
+
+ link = context_get_entry(This, hlid);
+ if (!link)
+ return E_FAIL;
+
+ This->current = link;
+ return S_OK;
}
static HRESULT WINAPI IHlinkBC_Clone( IHlinkBrowseContext* iface,
More information about the wine-cvs
mailing list