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
0051bea4
Commit
0051bea4
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::GetElement().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d0eaaea8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
+29
-3
pathname.c
dlls/activeds/pathname.c
+29
-2
activeds.c
dlls/activeds/tests/activeds.c
+0
-1
No files found.
dlls/activeds/pathname.c
View file @
0051bea4
...
...
@@ -299,8 +299,35 @@ static HRESULT WINAPI path_GetNumElements(IADsPathname *iface, LONG *count)
static
HRESULT
WINAPI
path_GetElement
(
IADsPathname
*
iface
,
LONG
index
,
BSTR
*
element
)
{
FIXME
(
"%p,%d,%p: stub
\n
"
,
iface
,
index
,
element
);
return
E_NOTIMPL
;
Pathname
*
path
=
impl_from_IADsPathname
(
iface
);
HRESULT
hr
;
WCHAR
*
p
,
*
end
;
LONG
count
;
TRACE
(
"%p,%d,%p
\n
"
,
iface
,
index
,
element
);
if
(
!
element
)
return
E_INVALIDARG
;
count
=
0
;
hr
=
HRESULT_FROM_WIN32
(
ERROR_INVALID_INDEX
);
p
=
path
->
dn
;
while
(
p
)
{
end
=
wcschr
(
p
,
','
);
if
(
index
==
count
)
{
*
element
=
end
?
SysAllocStringLen
(
p
,
end
-
p
)
:
SysAllocString
(
p
);
hr
=
*
element
?
S_OK
:
E_OUTOFMEMORY
;
break
;
}
p
=
end
?
end
+
1
:
NULL
;
count
++
;
}
return
hr
;
}
static
HRESULT
WINAPI
path_AddLeafElement
(
IADsPathname
*
iface
,
BSTR
element
)
...
...
dlls/activeds/tests/activeds.c
View file @
0051bea4
...
...
@@ -121,7 +121,6 @@ todo_wine
ok
(
count
==
0
,
"got %d
\n
"
,
count
);
hr
=
IADsPathname_GetElement
(
path
,
0
,
&
bstr
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INVALID_INDEX
),
"got %#x
\n
"
,
hr
);
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