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
f0b9d9fc
Commit
f0b9d9fc
authored
Dec 29, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Dec 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Don't test function directly when reporting GetLastError().
parent
046bcb7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
shlfileop.c
dlls/shell32/tests/shlfileop.c
+5
-4
No files found.
dlls/shell32/tests/shlfileop.c
View file @
f0b9d9fc
...
...
@@ -820,6 +820,7 @@ static void test_copy(void)
DWORD
retval
;
LPSTR
ptr
;
BOOL
on_nt4
=
FALSE
;
BOOL
ret
;
if
(
old_shell32
)
{
...
...
@@ -973,16 +974,16 @@ static void test_copy(void)
shfo
.
pTo
=
"test2.txt
\0
"
;
/* suppress the error-dialog in win9x here */
shfo
.
fFlags
=
FOF_NOERRORUI
|
FOF_NOCONFIRMATION
|
FOF_SILENT
;
ok
(
SetFileAttributesA
(
shfo
.
pTo
,
FILE_ATTRIBUTE_READONLY
),
"Failure to set file attributes (error %x)
\n
"
,
GetLastError
());
ret
=
SetFileAttributesA
(
shfo
.
pTo
,
FILE_ATTRIBUTE_READONLY
);
ok
(
ret
,
"Failure to set file attributes (error %x)
\n
"
,
GetLastError
());
retval
=
CopyFileA
(
shfo
.
pFrom
,
shfo
.
pTo
,
FALSE
);
ok
(
!
retval
&&
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"CopyFileA should have fail with ERROR_ACCESS_DENIED
\n
"
);
retval
=
SHFileOperationA
(
&
shfo
);
/* Does not work on Win95, Win95B, NT4WS and NT4SRV */
ok
(
!
retval
||
broken
(
retval
==
DE_OPCANCELLED
),
"SHFileOperationA failed to copy (error %x)
\n
"
,
retval
);
/* Set back normal attributes to make the file deletion succeed */
ok
(
SetFileAttributesA
(
shfo
.
pTo
,
FILE_ATTRIBUTE_NORMAL
),
"Failure to set file attributes (error %x)
\n
"
,
GetLastError
());
ret
=
SetFileAttributesA
(
shfo
.
pTo
,
FILE_ATTRIBUTE_NORMAL
);
ok
(
ret
,
"Failure to set file attributes (error %x)
\n
"
,
GetLastError
());
shfo
.
fFlags
=
tmp_flags
;
/* try to copy files to a file */
...
...
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