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
e53a0094
Commit
e53a0094
authored
Mar 26, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adsldp: Add special column "ADsPath" at the end of the entry.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3adc9c5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
adsldp.c
dlls/adsldp/adsldp.c
+11
-0
No files found.
dlls/adsldp/adsldp.c
View file @
e53a0094
...
...
@@ -401,6 +401,7 @@ struct ldap_search_context
LDAPMessage
*
res
,
*
entry
;
BerElement
*
ber
;
ULONG
count
,
pos
;
BOOL
add_ADsPath
;
};
static
inline
LDAP_namespace
*
impl_from_IADs
(
IADs
*
iface
)
...
...
@@ -1274,7 +1275,10 @@ static HRESULT WINAPI search_GetNextColumnName(IDirectorySearch *iface, ADS_SEAR
if
(
!
name
||
!
ldap_ctx
||
!
ldap_ctx
->
entry
)
return
E_ADS_BAD_PARAMETER
;
if
(
!
ldap_ctx
->
ber
)
{
attr
=
ldap_first_attributeW
(
ldap
->
ld
,
ldap_ctx
->
entry
,
&
ldap_ctx
->
ber
);
ldap_ctx
->
add_ADsPath
=
TRUE
;
}
else
attr
=
ldap_next_attributeW
(
ldap
->
ld
,
ldap_ctx
->
entry
,
ldap_ctx
->
ber
);
...
...
@@ -1285,6 +1289,13 @@ static HRESULT WINAPI search_GetNextColumnName(IDirectorySearch *iface, ADS_SEAR
ldap_memfreeW
(
attr
);
return
*
name
?
S_OK
:
E_OUTOFMEMORY
;
}
else
if
(
ldap_ctx
->
add_ADsPath
)
{
ldap_ctx
->
add_ADsPath
=
FALSE
;
*
name
=
AllocADsStr
((
WCHAR
*
)
L"ADsPath"
);
TRACE
(
"=> %s
\n
"
,
debugstr_w
(
*
name
));
return
*
name
?
S_OK
:
E_OUTOFMEMORY
;
}
*
name
=
NULL
;
return
S_ADS_NOMORE_COLUMNS
;
...
...
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