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
850cd7cc
Commit
850cd7cc
authored
Jan 08, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix some test failures on Vista.
parent
faf2f8e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
shlfileop.c
dlls/shell32/tests/shlfileop.c
+15
-3
No files found.
dlls/shell32/tests/shlfileop.c
View file @
850cd7cc
...
...
@@ -40,6 +40,7 @@
#define DE_DESTSUBTREE 0x76
#define DE_INVALIDFILES 0x7C
#define DE_DESTSAMETREE 0x7D
#define DE_FLDDESTISFILE 0x7E
#define DE_FILEDESTISFLD 0x80
#define expect_retval(ret, ret_prewin32)\
ok(retval == ret ||\
...
...
@@ -917,8 +918,16 @@ static void test_copy(void)
set_curr_dir_path
(
from
,
"test1.txt
\0
test2.txt
\0
"
);
set_curr_dir_path
(
to
,
"test3.txt
\0
"
);
retval
=
SHFileOperation
(
&
shfo
);
expect_retval
(
ERROR_CANCELLED
,
DE_OPCANCELLED
/* Win9x, NT4 */
);
ok
(
shfo
.
fAnyOperationsAborted
,
"Expected aborted operations
\n
"
);
if
(
retval
==
DE_FLDDESTISFILE
)
{
/* Vista and W2K8 (broken or new behavior ?) */
ok
(
!
shfo
.
fAnyOperationsAborted
,
"Didn't expect aborted operations
\n
"
);
}
else
{
expect_retval
(
ERROR_CANCELLED
,
DE_OPCANCELLED
/* Win9x, NT4 */
);
ok
(
shfo
.
fAnyOperationsAborted
,
"Expected aborted operations
\n
"
);
}
ok
(
!
file_exists
(
"test3.txt
\\
test2.txt"
),
"Expected test3.txt
\\
test2.txt to not exist
\n
"
);
/* try to copy many files to nonexistent directory */
...
...
@@ -1560,7 +1569,10 @@ static void test_copy(void)
shfo
.
fFlags
=
FOF_MULTIDESTFILES
|
FOF_NOCONFIRMATION
|
FOF_SILENT
|
FOF_NOERRORUI
;
retval
=
SHFileOperation
(
&
shfo
);
expect_retval
(
ERROR_CANCELLED
,
DE_OPCANCELLED
/* Win9x, NT4 */
);
ok
(
retval
==
ERROR_CANCELLED
||
retval
==
DE_FILEDESTISFLD
||
/* Vista */
broken
(
retval
==
DE_OPCANCELLED
),
/* Win9x, NT4 */
"Expected ERROR_CANCELLED or DE_FILEDESTISFLD. got %d
\n
"
,
retval
);
if
(
file_exists
(
"threedir
\\
threedir"
))
{
/* NT4 */
...
...
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