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
324e0d2e
Commit
324e0d2e
authored
Sep 03, 2018
by
Brock York
Committed by
Alexandre Julliard
Sep 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Improve ReplaceFileW error checking.
Signed-off-by:
Brock York
<
twunknown@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2bbd309d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
file.c
dlls/kernel32/tests/file.c
+1
-1
No files found.
dlls/kernel32/tests/file.c
View file @
324e0d2e
...
...
@@ -3666,7 +3666,7 @@ static void test_ReplaceFileA(void)
*/
SetLastError
(
0xdeadbeef
);
ret
=
pReplaceFileA
(
replaced
,
replacement
,
backup
,
0
,
0
,
0
);
ok
(
ret
!=
ERROR_UNABLE_TO_REMOVE_REPLAC
ED
,
"ReplaceFileA: unexpected error %d
\n
"
,
GetLastError
());
todo_wine
ok
(
ret
==
0
&&
GetLastError
()
==
ERROR_ACCESS_DENI
ED
,
"ReplaceFileA: unexpected error %d
\n
"
,
GetLastError
());
/* make sure that the replacement file still exists */
hReplacementFile
=
CreateFileA
(
replacement
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
ok
(
hReplacementFile
!=
INVALID_HANDLE_VALUE
||
...
...
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