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
631813bf
Commit
631813bf
authored
Mar 10, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adsldp: Implement IParseDisplayName::ParseDisplayName.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
af92668b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
adsldp.c
dlls/adsldp/adsldp.c
+22
-2
ldap.c
dlls/adsldp/tests/ldap.c
+1
-2
No files found.
dlls/adsldp/adsldp.c
View file @
631813bf
...
...
@@ -101,8 +101,28 @@ static ULONG WINAPI ldap_Release(IParseDisplayName *iface)
static
HRESULT
WINAPI
ldap_ParseDisplayName
(
IParseDisplayName
*
iface
,
IBindCtx
*
bc
,
LPOLESTR
name
,
ULONG
*
eaten
,
IMoniker
**
mk
)
{
FIXME
(
"%p,%p,%s,%p,%p: stub
\n
"
,
iface
,
bc
,
debugstr_w
(
name
),
eaten
,
mk
);
return
E_NOTIMPL
;
HRESULT
hr
;
IADsOpenDSObject
*
ads_open
;
IDispatch
*
disp
;
TRACE
(
"%p,%p,%s,%p,%p
\n
"
,
iface
,
bc
,
debugstr_w
(
name
),
eaten
,
mk
);
hr
=
LDAPNamespace_create
(
&
IID_IADsOpenDSObject
,
(
void
**
)
&
ads_open
);
if
(
hr
!=
S_OK
)
return
hr
;
hr
=
IADsOpenDSObject_OpenDSObject
(
ads_open
,
name
,
NULL
,
NULL
,
ADS_SECURE_AUTHENTICATION
,
&
disp
);
if
(
hr
==
S_OK
)
{
hr
=
CreatePointerMoniker
((
IUnknown
*
)
disp
,
mk
);
if
(
hr
==
S_OK
)
*
eaten
=
wcslen
(
name
);
IDispatch_Release
(
disp
);
}
IADsOpenDSObject_Release
(
ads_open
);
return
hr
;
}
static
const
IParseDisplayNameVtbl
LDAP_PARSE_vtbl
=
...
...
dlls/adsldp/tests/ldap.c
View file @
631813bf
...
...
@@ -122,7 +122,6 @@ static void test_ParseDisplayName(void)
count
=
0xdeadbeef
;
hr
=
IParseDisplayName_ParseDisplayName
(
parse
,
bc
,
path
,
&
count
,
&
mk
);
todo_wine
ok
(
hr
==
test
[
i
].
hr
||
hr
==
test
[
i
].
hr_ads_open
,
"%d: got %#x, expected %#x
\n
"
,
i
,
hr
,
test
[
i
].
hr
);
if
(
hr
==
S_OK
)
{
...
...
@@ -139,7 +138,7 @@ todo_wine
count
=
0xdeadbeef
;
hr
=
MkParseDisplayName
(
bc
,
test
[
i
].
path
,
&
count
,
&
mk
);
todo_wine
todo_wine
_if
(
i
==
0
||
i
==
1
||
i
==
11
||
i
==
12
)
ok
(
hr
==
test
[
i
].
hr
,
"%d: got %#x, expected %#x
\n
"
,
i
,
hr
,
test
[
i
].
hr
);
if
(
hr
==
S_OK
)
{
...
...
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