Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
afeb8edd
Commit
afeb8edd
authored
Mar 23, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adsldp: Implement IADs::Get().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9c3ca265
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
+37
-2
adsldp.c
dlls/adsldp/adsldp.c
+37
-2
No files found.
dlls/adsldp/adsldp.c
View file @
afeb8edd
...
...
@@ -551,8 +551,43 @@ static HRESULT WINAPI ldapns_SetInfo(IADs *iface)
static
HRESULT
WINAPI
ldapns_Get
(
IADs
*
iface
,
BSTR
name
,
VARIANT
*
prop
)
{
FIXME
(
"%p,%s,%p: stub
\n
"
,
iface
,
debugstr_w
(
name
),
prop
);
return
E_NOTIMPL
;
LDAP_namespace
*
ldap
=
impl_from_IADs
(
iface
);
HRESULT
hr
;
ULONG
i
;
TRACE
(
"%p,%s,%p
\n
"
,
iface
,
debugstr_w
(
name
),
prop
);
if
(
!
name
||
!
prop
)
return
E_ADS_BAD_PARAMETER
;
if
(
!
ldap
->
attrs_count
)
{
hr
=
IADs_GetInfo
(
iface
);
if
(
hr
!=
S_OK
)
return
hr
;
}
for
(
i
=
0
;
i
<
ldap
->
attrs_count
;
i
++
)
{
if
(
!
wcsicmp
(
name
,
ldap
->
attrs
[
i
].
name
))
{
ULONG
count
=
ldap_count_valuesW
(
ldap
->
attrs
[
i
].
values
);
if
(
!
count
)
{
V_BSTR
(
prop
)
=
NULL
;
V_VT
(
prop
)
=
VT_BSTR
;
return
S_OK
;
}
if
(
count
>
1
)
FIXME
(
"attr %s has %u values
\n
"
,
debugstr_w
(
ldap
->
attrs
[
i
].
name
),
count
);
V_BSTR
(
prop
)
=
SysAllocString
(
ldap
->
attrs
[
i
].
values
[
0
]);
if
(
!
V_BSTR
(
prop
))
return
E_OUTOFMEMORY
;
V_VT
(
prop
)
=
VT_BSTR
;
return
S_OK
;
}
}
return
E_ADS_PROPERTY_NOT_FOUND
;
}
static
HRESULT
WINAPI
ldapns_Put
(
IADs
*
iface
,
BSTR
name
,
VARIANT
prop
)
...
...
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