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
96d05d15
Commit
96d05d15
authored
Aug 27, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed permission check when renaming a directory (based on a patch by
Andriy Palamarchuk).
parent
85350c8c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
file.c
files/file.c
+10
-2
No files found.
files/file.c
View file @
96d05d15
...
...
@@ -2627,8 +2627,16 @@ BOOL WINAPI MoveFileExW( LPCWSTR fn1, LPCWSTR fn2, DWORD flag )
hFile
=
FILE_CreateFile
(
full_name1
.
long_name
,
0
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
0
,
TRUE
,
GetDriveTypeW
(
full_name1
.
short_name
)
);
if
(
!
hFile
)
return
FALSE
;
CloseHandle
(
hFile
);
if
(
!
hFile
)
{
DWORD
attr
;
if
(
GetLastError
()
!=
ERROR_ACCESS_DENIED
)
return
FALSE
;
attr
=
GetFileAttributesA
(
full_name1
.
long_name
);
if
(
attr
==
(
DWORD
)
-
1
||
!
(
attr
&
FILE_ATTRIBUTE_DIRECTORY
))
return
FALSE
;
/* if it's a directory we can continue */
}
else
CloseHandle
(
hFile
);
/* check, if we are allowed to delete the destination,
** (but the file not being there is fine) */
...
...
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