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
b7afaec8
Commit
b7afaec8
authored
Mar 28, 2019
by
Gijs Vermeulen
Committed by
Alexandre Julliard
Mar 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Implement Clone() for drive collection.
Signed-off-by:
Gijs Vermeulen
<
gijsvrm@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0c4acb61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
filesystem.c
dlls/scrrun/filesystem.c
+3
-2
filesystem.c
dlls/scrrun/tests/filesystem.c
+2
-7
No files found.
dlls/scrrun/filesystem.c
View file @
b7afaec8
...
...
@@ -197,6 +197,7 @@ static HRESULT create_folder(const WCHAR*, IFolder**);
static
HRESULT
create_file
(
BSTR
,
IFile
**
);
static
HRESULT
create_foldercoll_enum
(
struct
foldercollection
*
,
IUnknown
**
);
static
HRESULT
create_filecoll_enum
(
struct
filecollection
*
,
IUnknown
**
);
static
HRESULT
create_drivecoll_enum
(
struct
drivecollection
*
,
IUnknown
**
);
static
inline
BOOL
is_dir_data
(
const
WIN32_FIND_DATAW
*
data
)
{
...
...
@@ -1555,8 +1556,8 @@ static HRESULT WINAPI drivecoll_enumvariant_Reset(IEnumVARIANT *iface)
static
HRESULT
WINAPI
drivecoll_enumvariant_Clone
(
IEnumVARIANT
*
iface
,
IEnumVARIANT
**
pclone
)
{
struct
enumvariant
*
This
=
impl_from_IEnumVARIANT
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
pclone
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pclone
);
return
create_drivecoll_enum
(
This
->
data
.
u
.
drivecoll
.
coll
,
(
IUnknown
**
)
pclone
)
;
}
static
const
IEnumVARIANTVtbl
drivecollenumvariantvtbl
=
{
...
...
dlls/scrrun/tests/filesystem.c
View file @
b7afaec8
...
...
@@ -1361,7 +1361,7 @@ static void test_FileCollection(void)
static
void
test_DriveCollection
(
void
)
{
IDriveCollection
*
drives
;
IEnumVARIANT
*
enumvar
,
*
clone
;
IEnumVARIANT
*
enumvar
;
ULONG
fetched
;
VARIANT
var
;
HRESULT
hr
;
...
...
@@ -1398,12 +1398,7 @@ static void test_DriveCollection(void)
hr
=
IEnumVARIANT_Skip
(
enumvar
,
1
);
ok
(
hr
==
S_FALSE
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IEnumVARIANT_Reset
(
enumvar
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IEnumVARIANT_Clone
(
enumvar
,
&
clone
);
if
(
hr
==
S_OK
)
test_clone
(
enumvar
,
TRUE
);
test_clone
(
enumvar
,
TRUE
);
while
(
IEnumVARIANT_Next
(
enumvar
,
1
,
&
var
,
&
fetched
)
==
S_OK
)
{
IDrive
*
drive
=
(
IDrive
*
)
V_DISPATCH
(
&
var
);
...
...
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