Dmitry Timoshkov : adsldp: Implement IDirectorySearch::CloseSearchHandle().
Alexandre Julliard
julliard at winehq.org
Wed Mar 25 17:07:29 CDT 2020
Module: wine
Branch: master
Commit: 17be7f3dad8e782fedbab201289ffe3a515162fa
URL: https://source.winehq.org/git/wine.git/?a=commit;h=17be7f3dad8e782fedbab201289ffe3a515162fa
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Wed Mar 25 11:18:06 2020 +0800
adsldp: Implement IDirectorySearch::CloseSearchHandle().
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/adsldp/adsldp.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/adsldp/adsldp.c b/dlls/adsldp/adsldp.c
index 9787102b17..53f766565c 100644
--- a/dlls/adsldp/adsldp.c
+++ b/dlls/adsldp/adsldp.c
@@ -1234,8 +1234,15 @@ static HRESULT WINAPI search_FreeColumn(IDirectorySearch *iface, PADS_SEARCH_COL
static HRESULT WINAPI search_CloseSearchHandle(IDirectorySearch *iface, ADS_SEARCH_HANDLE res)
{
- FIXME("%p,%p: stub\n", iface, res);
- return E_NOTIMPL;
+ struct ldap_search_context *ldap_ctx = res;
+
+ TRACE("%p,%p\n", iface, res);
+
+ if (!res) return E_ADS_BAD_PARAMETER;
+
+ ldap_msgfree(ldap_ctx->res);
+
+ return S_OK;
}
static const IDirectorySearchVtbl IDirectorySearch_vtbl =
More information about the wine-cvs
mailing list