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
fac1c0d2
Commit
fac1c0d2
authored
Mar 10, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Fix Skip() for file collection.
parent
a9a2c9b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
filesystem.c
dlls/scrrun/filesystem.c
+14
-1
filesystem.c
dlls/scrrun/tests/filesystem.c
+0
-3
No files found.
dlls/scrrun/filesystem.c
View file @
fac1c0d2
...
...
@@ -1001,9 +1001,22 @@ static HRESULT WINAPI filecoll_enumvariant_Skip(IEnumVARIANT *iface, ULONG celt)
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
celt
);
while
(
FindNextFileW
(
handle
,
&
data
)
&&
celt
)
if
(
!
celt
)
return
S_OK
;
if
(
!
handle
)
{
handle
=
start_enumeration
(
This
->
data
.
u
.
filecoll
.
coll
->
path
,
&
data
,
TRUE
);
if
(
!
handle
)
return
S_FALSE
;
This
->
data
.
u
.
filecoll
.
find
=
handle
;
}
else
if
(
!
FindNextFileW
(
handle
,
&
data
))
return
S_FALSE
;
do
{
if
(
is_file_data
(
&
data
))
--
celt
;
}
while
(
celt
&&
FindNextFileW
(
handle
,
&
data
));
return
celt
?
S_FALSE
:
S_OK
;
}
...
...
dlls/scrrun/tests/filesystem.c
View file @
fac1c0d2
...
...
@@ -1106,7 +1106,6 @@ todo_wine
hr
=
IEnumVARIANT_Reset
(
enumvar
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IEnumVARIANT_Skip
(
enumvar
,
2
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IEnumVARIANT_Skip
(
enumvar
,
0
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
...
...
@@ -1119,9 +1118,7 @@ todo_wine
ok
(
fetched
==
0
,
"got %d
\n
"
,
fetched
);
fetched
=
-
1
;
hr
=
IEnumVARIANT_Next
(
enumvar
,
2
,
var2
,
&
fetched
);
todo_wine
ok
(
hr
==
S_FALSE
,
"got 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
fetched
==
1
,
"got %d
\n
"
,
fetched
);
ok
(
V_VT
(
&
var2
[
0
])
==
VT_DISPATCH
,
"got type %d
\n
"
,
V_VT
(
&
var2
[
0
]));
VariantClear
(
&
var2
[
0
]);
...
...
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