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
093616ee
Commit
093616ee
authored
Mar 25, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adsldp: Implement IDirectorySearch::GetNextRow().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6f14d858
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
adsldp.c
dlls/adsldp/adsldp.c
+25
-2
No files found.
dlls/adsldp/adsldp.c
View file @
093616ee
...
...
@@ -1216,8 +1216,31 @@ static HRESULT WINAPI search_GetFirstRow(IDirectorySearch *iface, ADS_SEARCH_HAN
static
HRESULT
WINAPI
search_GetNextRow
(
IDirectorySearch
*
iface
,
ADS_SEARCH_HANDLE
res
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
res
);
return
E_NOTIMPL
;
LDAP_namespace
*
ldap
=
impl_from_IDirectorySearch
(
iface
);
struct
ldap_search_context
*
ldap_ctx
=
res
;
TRACE
(
"%p,%p
\n
"
,
iface
,
res
);
if
(
!
ldap
->
ld
)
return
E_NOTIMPL
;
if
(
!
res
)
return
E_ADS_BAD_PARAMETER
;
if
(
!
ldap_ctx
->
entry
)
{
ldap_ctx
->
count
=
ldap_count_entries
(
ldap
->
ld
,
ldap_ctx
->
res
);
ldap_ctx
->
pos
=
0
;
ldap_ctx
->
entry
=
ldap_first_entry
(
ldap
->
ld
,
ldap_ctx
->
res
);
}
else
{
if
(
ldap_ctx
->
pos
>=
ldap_ctx
->
count
)
return
S_ADS_NOMORE_ROWS
;
ldap_ctx
->
entry
=
ldap_next_entry
(
ldap
->
ld
,
ldap_ctx
->
res
);
ldap_ctx
->
pos
++
;
}
return
ldap_ctx
->
entry
?
S_OK
:
S_ADS_NOMORE_ROWS
;
}
static
HRESULT
WINAPI
search_GetPreviousRow
(
IDirectorySearch
*
iface
,
ADS_SEARCH_HANDLE
res
)
...
...
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