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
3cc34a5b
Commit
3cc34a5b
authored
Jan 03, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Implement Reset() for folder collection.
parent
47e1ac9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
filesystem.c
dlls/scrrun/filesystem.c
+19
-2
filesystem.c
dlls/scrrun/tests/filesystem.c
+4
-0
No files found.
dlls/scrrun/filesystem.c
View file @
3cc34a5b
...
...
@@ -42,6 +42,8 @@ struct enumdata {
struct
{
IFolderCollection
*
coll
;
HANDLE
find
;
BSTR
path
;
}
foldercoll
;
}
u
;
};
...
...
@@ -408,6 +410,8 @@ static ULONG WINAPI foldercoll_enumvariant_Release(IEnumVARIANT *iface)
if
(
!
ref
)
{
IFolderCollection_Release
(
This
->
data
.
u
.
foldercoll
.
coll
);
SysFreeString
(
This
->
data
.
u
.
foldercoll
.
path
);
FindClose
(
This
->
data
.
u
.
foldercoll
.
find
);
heap_free
(
This
);
}
...
...
@@ -431,8 +435,13 @@ static HRESULT WINAPI foldercoll_enumvariant_Skip(IEnumVARIANT *iface, ULONG cel
static
HRESULT
WINAPI
foldercoll_enumvariant_Reset
(
IEnumVARIANT
*
iface
)
{
struct
enumvariant
*
This
=
impl_from_IEnumVARIANT
(
iface
);
FIXME
(
"(%p): stub
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)
\n
"
,
This
);
FindClose
(
This
->
data
.
u
.
foldercoll
.
find
);
This
->
data
.
u
.
foldercoll
.
find
=
NULL
;
return
S_OK
;
}
static
HRESULT
WINAPI
foldercoll_enumvariant_Clone
(
IEnumVARIANT
*
iface
,
IEnumVARIANT
**
pclone
)
...
...
@@ -463,6 +472,14 @@ static HRESULT create_foldercoll_enum(struct foldercollection *collection, IUnkn
This
->
IEnumVARIANT_iface
.
lpVtbl
=
&
foldercollenumvariantvtbl
;
This
->
ref
=
1
;
This
->
data
.
u
.
foldercoll
.
find
=
NULL
;
This
->
data
.
u
.
foldercoll
.
path
=
SysAllocString
(
collection
->
path
);
if
(
!
This
->
data
.
u
.
foldercoll
.
path
)
{
heap_free
(
This
);
return
E_OUTOFMEMORY
;
}
This
->
data
.
u
.
foldercoll
.
coll
=
&
collection
->
IFolderCollection_iface
;
IFolderCollection_AddRef
(
This
->
data
.
u
.
foldercoll
.
coll
);
...
...
dlls/scrrun/tests/filesystem.c
View file @
3cc34a5b
...
...
@@ -866,6 +866,10 @@ if (hr == S_OK) {
ok
(
clone
!=
enumvar
,
"got %p, %p
\n
"
,
enumvar
,
clone
);
IEnumVARIANT_Release
(
clone
);
}
hr
=
IEnumVARIANT_Reset
(
enumvar
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IEnumVARIANT_Release
(
enumvar
);
IUnknown_Release
(
unk
);
...
...
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