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
8691c8ec
Commit
8691c8ec
authored
Feb 12, 2002
by
Jukka Heinonen
Committed by
Alexandre Julliard
Feb 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SetFileAttributes returns now an error if target file is on CDROM.
parent
34f5563d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
file.c
win32/file.c
+17
-4
No files found.
win32/file.c
View file @
8691c8ec
...
@@ -91,10 +91,23 @@ BOOL WINAPI SetFileAttributesA(LPCSTR lpFileName, DWORD attributes)
...
@@ -91,10 +91,23 @@ BOOL WINAPI SetFileAttributesA(LPCSTR lpFileName, DWORD attributes)
lpFileName
,
attributes
);
lpFileName
,
attributes
);
if
(
-
1
==
chmod
(
full_name
.
long_name
,
buf
.
st_mode
))
if
(
-
1
==
chmod
(
full_name
.
long_name
,
buf
.
st_mode
))
{
{
FILE_SetDosError
();
if
(
GetDriveTypeA
(
lpFileName
)
==
DRIVE_CDROM
)
{
MESSAGE
(
"Wine ERROR: Couldn't set file attributes for existing file
\"
%s
\"
.
\n
"
SetLastError
(
ERROR_ACCESS_DENIED
);
"Check permissions or set VFAT
\"
quiet
\"
mount flag
\n
"
,
full_name
.
long_name
);
return
FALSE
;
return
TRUE
;
}
/*
* FIXME: We don't return FALSE here because of differences between
* Linux and Windows privileges. Under Linux only the owner of
* the file is allowed to change file attributes. Under Windows,
* applications expect that if you can write to a file, you can also
* change its attributes (see GENERIC_WRITE). We could try to be
* clever here but that would break multi-user installations where
* users share read-only DLLs. This is because some installers like
* to change attributes of already installed DLLs.
*/
FIXME
(
"Couldn't set file attributes for existing file
\"
%s
\"
.
\n
"
"Check permissions or set VFAT
\"
quiet
\"
mount flag
\n
"
,
full_name
.
long_name
);
}
}
return
TRUE
;
return
TRUE
;
}
}
...
...
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