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
03e3800d
Commit
03e3800d
authored
Apr 10, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
activeds: Implement some simple cases for IADsPathname::Retrieve().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
29967463
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
pathname.c
dlls/activeds/pathname.c
+14
-2
activeds.c
dlls/activeds/tests/activeds.c
+0
-2
No files found.
dlls/activeds/pathname.c
View file @
03e3800d
...
...
@@ -252,7 +252,7 @@ static HRESULT WINAPI path_Retrieve(IADsPathname *iface, LONG type, BSTR *adspat
if
(
path
->
dn
)
len
+=
wcslen
(
path
->
dn
);
*
adspath
=
SysAllocStringLen
(
NULL
,
len
);
if
(
!*
adspath
)
return
E_OUTOFMEMORY
;
if
(
!*
adspath
)
break
;
wcscpy
(
*
adspath
,
path
->
provider
);
wcscat
(
*
adspath
,
L"://"
);
...
...
@@ -263,10 +263,22 @@ static HRESULT WINAPI path_Retrieve(IADsPathname *iface, LONG type, BSTR *adspat
}
if
(
path
->
dn
)
wcscat
(
*
adspath
,
path
->
dn
);
break
;
case
ADS_FORMAT_PROVIDER
:
*
adspath
=
SysAllocString
(
path
->
provider
);
break
;
case
ADS_FORMAT_SERVER
:
*
adspath
=
path
->
provider
?
SysAllocString
(
path
->
server
)
:
SysAllocStringLen
(
NULL
,
0
);
break
;
case
ADS_FORMAT_X500_DN
:
*
adspath
=
path
->
dn
?
SysAllocString
(
path
->
dn
)
:
SysAllocStringLen
(
NULL
,
0
);
break
;
}
TRACE
(
"=> %s
\n
"
,
debugstr_w
(
*
adspath
));
return
S_OK
;
return
*
adspath
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
path_GetNumElements
(
IADsPathname
*
iface
,
LONG
*
count
)
...
...
dlls/activeds/tests/activeds.c
View file @
03e3800d
...
...
@@ -151,13 +151,11 @@ todo_wine
hr
=
IADsPathname_Retrieve
(
path
,
ADS_FORMAT_PROVIDER
,
&
bstr
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
todo_wine
ok
(
!
wcscmp
(
bstr
,
L"LDAP"
),
"got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
hr
=
IADsPathname_Retrieve
(
path
,
ADS_FORMAT_SERVER
,
&
bstr
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
todo_wine
ok
(
!
wcscmp
(
bstr
,
L"sample:123"
),
"got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
...
...
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