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
51367055
Commit
51367055
authored
Dec 15, 2003
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MoveFile returns ERROR_ALREADY_EXISTS, not ERROR_FILE_EXISTS.
parent
cf50f9a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
file.c
dlls/kernel/tests/file.c
+2
-2
file.c
files/file.c
+1
-1
No files found.
dlls/kernel/tests/file.c
View file @
51367055
...
...
@@ -669,7 +669,7 @@ static void test_MoveFileA(void)
ok
(
ret
!=
0
,
"GetTempFileNameA error %ld"
,
GetLastError
());
ret
=
MoveFileA
(
source
,
dest
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_
FILE
_EXISTS
,
ok
(
!
ret
&&
GetLastError
()
==
ERROR_
ALREADY
_EXISTS
,
"MoveFileA: unexpected error %ld
\n
"
,
GetLastError
());
ret
=
DeleteFileA
(
dest
);
...
...
@@ -745,7 +745,7 @@ static void test_MoveFileW(void)
ok
(
ret
!=
0
,
"GetTempFileNameW error %ld"
,
GetLastError
());
ret
=
MoveFileW
(
source
,
dest
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_
FILE
_EXISTS
,
ok
(
!
ret
&&
GetLastError
()
==
ERROR_
ALREADY
_EXISTS
,
"CopyFileW: unexpected error %ld
\n
"
,
GetLastError
());
ret
=
DeleteFileW
(
source
);
...
...
files/file.c
View file @
51367055
...
...
@@ -1817,7 +1817,7 @@ BOOL WINAPI MoveFileExW( LPCWSTR fn1, LPCWSTR fn2, DWORD flag )
/* target exists, check if we may overwrite */
if
(
!
(
flag
&
MOVEFILE_REPLACE_EXISTING
))
{
SetLastError
(
ERROR_
FILE
_EXISTS
);
SetLastError
(
ERROR_
ALREADY
_EXISTS
);
return
FALSE
;
}
}
...
...
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