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
8bf29f17
Commit
8bf29f17
authored
Mar 28, 1999
by
Steffen Moeller
Committed by
Alexandre Julliard
Mar 28, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SetFileAttributesA: "implemented" setting of directory flag as test of
compatibility.
parent
f15d1806
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
file.c
win32/file.c
+7
-0
No files found.
win32/file.c
View file @
8bf29f17
...
@@ -88,6 +88,13 @@ BOOL WINAPI SetFileAttributesA(LPCSTR lpFileName, DWORD attributes)
...
@@ -88,6 +88,13 @@ BOOL WINAPI SetFileAttributesA(LPCSTR lpFileName, DWORD attributes)
/* add write permission */
/* add write permission */
buf
.
st_mode
|=
0600
|
((
buf
.
st_mode
&
044
)
>>
1
);
buf
.
st_mode
|=
0600
|
((
buf
.
st_mode
&
044
)
>>
1
);
}
}
if
(
attributes
&
FILE_ATTRIBUTE_DIRECTORY
)
{
if
(
!
S_ISDIR
(
buf
.
st_mode
))
FIXME
(
file
,
"SetFileAttributes expected the file '%s' to be a directory"
,
lpFileName
);
attributes
&=
~
FILE_ATTRIBUTE_DIRECTORY
;
}
attributes
&=
~
(
FILE_ATTRIBUTE_ARCHIVE
|
FILE_ATTRIBUTE_HIDDEN
|
FILE_ATTRIBUTE_SYSTEM
);
attributes
&=
~
(
FILE_ATTRIBUTE_ARCHIVE
|
FILE_ATTRIBUTE_HIDDEN
|
FILE_ATTRIBUTE_SYSTEM
);
if
(
attributes
)
if
(
attributes
)
FIXME
(
file
,
"(%s):%lx attribute(s) not implemented.
\n
"
,
FIXME
(
file
,
"(%s):%lx attribute(s) not implemented.
\n
"
,
...
...
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