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
ba82c34b
Commit
ba82c34b
authored
Apr 01, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
activeds: Make IADsPathname::Set() and IADsPathname::Retrieve() return success.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0340b0b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
pathname.c
dlls/activeds/pathname.c
+20
-6
No files found.
dlls/activeds/pathname.c
View file @
ba82c34b
...
...
@@ -39,6 +39,7 @@ typedef struct
{
IADsPathname
IADsPathname_iface
;
LONG
ref
;
BSTR
adspath
;
}
Pathname
;
static
inline
Pathname
*
impl_from_IADsPathname
(
IADsPathname
*
iface
)
...
...
@@ -112,10 +113,16 @@ static HRESULT WINAPI path_Invoke(IADsPathname *iface, DISPID dispid, REFIID rii
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
path_Set
(
IADsPathname
*
iface
,
BSTR
path
,
LONG
type
)
static
HRESULT
WINAPI
path_Set
(
IADsPathname
*
iface
,
BSTR
ads
path
,
LONG
type
)
{
FIXME
(
"%p,%s,%d: stub
\n
"
,
iface
,
debugstr_w
(
path
),
type
);
return
E_NOTIMPL
;
Pathname
*
path
=
impl_from_IADsPathname
(
iface
);
FIXME
(
"%p,%s,%d: stub
\n
"
,
iface
,
debugstr_w
(
adspath
),
type
);
if
(
!
adspath
)
return
E_INVALIDARG
;
path
->
adspath
=
SysAllocString
(
adspath
);
return
path
->
adspath
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
path_SetDisplayType
(
IADsPathname
*
iface
,
LONG
type
)
...
...
@@ -124,10 +131,16 @@ static HRESULT WINAPI path_SetDisplayType(IADsPathname *iface, LONG type)
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
path_Retrieve
(
IADsPathname
*
iface
,
LONG
type
,
BSTR
*
path
)
static
HRESULT
WINAPI
path_Retrieve
(
IADsPathname
*
iface
,
LONG
type
,
BSTR
*
ads
path
)
{
FIXME
(
"%p,%d,%p: stub
\n
"
,
iface
,
type
,
path
);
return
E_NOTIMPL
;
Pathname
*
path
=
impl_from_IADsPathname
(
iface
);
FIXME
(
"%p,%d,%p: stub
\n
"
,
iface
,
type
,
adspath
);
if
(
!
adspath
)
return
E_INVALIDARG
;
*
adspath
=
SysAllocString
(
path
->
adspath
);
return
*
adspath
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
path_GetNumElements
(
IADsPathname
*
iface
,
LONG
*
count
)
...
...
@@ -210,6 +223,7 @@ static HRESULT Pathname_create(REFIID riid, void **obj)
path
->
IADsPathname_iface
.
lpVtbl
=
&
IADsPathname_vtbl
;
path
->
ref
=
1
;
path
->
adspath
=
NULL
;
hr
=
IADsPathname_QueryInterface
(
&
path
->
IADsPathname_iface
,
riid
,
obj
);
IADsPathname_Release
(
&
path
->
IADsPathname_iface
);
...
...
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