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
d4955416
Commit
d4955416
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 IADsPathname::GetNumElements().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0051bea4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
pathname.c
dlls/activeds/pathname.c
+18
-2
activeds.c
dlls/activeds/tests/activeds.c
+1
-6
No files found.
dlls/activeds/pathname.c
View file @
d4955416
...
@@ -293,8 +293,24 @@ static HRESULT WINAPI path_Retrieve(IADsPathname *iface, LONG type, BSTR *adspat
...
@@ -293,8 +293,24 @@ static HRESULT WINAPI path_Retrieve(IADsPathname *iface, LONG type, BSTR *adspat
static
HRESULT
WINAPI
path_GetNumElements
(
IADsPathname
*
iface
,
LONG
*
count
)
static
HRESULT
WINAPI
path_GetNumElements
(
IADsPathname
*
iface
,
LONG
*
count
)
{
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
count
);
Pathname
*
path
=
impl_from_IADsPathname
(
iface
);
return
E_NOTIMPL
;
WCHAR
*
p
;
TRACE
(
"%p,%p
\n
"
,
iface
,
count
);
if
(
!
count
)
return
E_INVALIDARG
;
*
count
=
0
;
p
=
path
->
dn
;
while
(
p
)
{
*
count
+=
1
;
p
=
wcschr
(
p
,
','
);
if
(
p
)
p
++
;
}
return
S_OK
;
}
}
static
HRESULT
WINAPI
path_GetElement
(
IADsPathname
*
iface
,
LONG
index
,
BSTR
*
element
)
static
HRESULT
WINAPI
path_GetElement
(
IADsPathname
*
iface
,
LONG
index
,
BSTR
*
element
)
...
...
dlls/activeds/tests/activeds.c
View file @
d4955416
...
@@ -97,9 +97,7 @@ static void test_Pathname(void)
...
@@ -97,9 +97,7 @@ static void test_Pathname(void)
count
=
0xdeadbeef
;
count
=
0xdeadbeef
;
hr
=
IADsPathname_GetNumElements
(
path
,
&
count
);
hr
=
IADsPathname_GetNumElements
(
path
,
&
count
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
todo_wine
ok
(
count
==
0
,
"got %d
\n
"
,
count
);
ok
(
count
==
0
,
"got %d
\n
"
,
count
);
bstr
=
NULL
;
bstr
=
NULL
;
...
@@ -115,9 +113,7 @@ todo_wine
...
@@ -115,9 +113,7 @@ todo_wine
count
=
0xdeadbeef
;
count
=
0xdeadbeef
;
hr
=
IADsPathname_GetNumElements
(
path
,
&
count
);
hr
=
IADsPathname_GetNumElements
(
path
,
&
count
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
todo_wine
ok
(
count
==
0
,
"got %d
\n
"
,
count
);
ok
(
count
==
0
,
"got %d
\n
"
,
count
);
hr
=
IADsPathname_GetElement
(
path
,
0
,
&
bstr
);
hr
=
IADsPathname_GetElement
(
path
,
0
,
&
bstr
);
...
@@ -131,10 +127,9 @@ todo_wine
...
@@ -131,10 +127,9 @@ todo_wine
count
=
0xdeadbeef
;
count
=
0xdeadbeef
;
hr
=
IADsPathname_GetNumElements
(
path
,
&
count
);
hr
=
IADsPathname_GetNumElements
(
path
,
&
count
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
todo_wine
ok
(
count
==
3
,
"got %d
\n
"
,
count
);
ok
(
count
==
3
,
"got %d
\n
"
,
count
);
for
(
i
=
0
;
i
<
count
;
i
++
)
for
(
i
=
0
;
i
<
count
;
i
++
)
{
{
hr
=
IADsPathname_GetElement
(
path
,
i
,
&
bstr
);
hr
=
IADsPathname_GetElement
(
path
,
i
,
&
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