Andrew Eikum : hlink: Add partial implementation of IHlinkBrowseContext:: GetHlink.

Alexandre Julliard julliard at winehq.org
Wed Dec 23 10:04:12 CST 2009


Module: wine
Branch: master
Commit: 7ba24349757fe0179f533f76dae8e925690c123b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7ba24349757fe0179f533f76dae8e925690c123b

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Tue Dec 22 17:43:29 2009 -0600

hlink: Add partial implementation of IHlinkBrowseContext::GetHlink.

---

 dlls/hlink/browse_ctx.c |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/dlls/hlink/browse_ctx.c b/dlls/hlink/browse_ctx.c
index f0274b0..a5b73c1 100644
--- a/dlls/hlink/browse_ctx.c
+++ b/dlls/hlink/browse_ctx.c
@@ -223,8 +223,19 @@ static HRESULT WINAPI IHlinkBC_QueryHlink( IHlinkBrowseContext* iface,
 static HRESULT WINAPI IHlinkBC_GetHlink( IHlinkBrowseContext* iface,
         ULONG uHLID, IHlink** ppihl)
 {
-    FIXME("\n");
-    return E_NOTIMPL;
+    HlinkBCImpl  *This = (HlinkBCImpl*)iface;
+
+    TRACE("(%p)->(%x %p)\n", This, uHLID, ppihl);
+
+    if(uHLID != HLID_CURRENT) {
+        FIXME("Only HLID_CURRENT implemented, given: %x\n", uHLID);
+        return E_NOTIMPL;
+    }
+
+    *ppihl = This->CurrentPage;
+    IHlink_AddRef(*ppihl);
+
+    return S_OK;
 }
 
 static HRESULT WINAPI IHlinkBC_SetCurrentHlink( IHlinkBrowseContext* iface,




More information about the wine-cvs mailing list