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
760b7881
Commit
760b7881
authored
Apr 16, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't ignore pmode attribute in _wsopen_s.
parent
0694f8c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
file.c
dlls/msvcrt/file.c
+5
-3
No files found.
dlls/msvcrt/file.c
View file @
760b7881
...
...
@@ -2114,8 +2114,6 @@ int CDECL MSVCRT__wsopen_s( int *fd, const MSVCRT_wchar_t* path, int oflags, int
{
if
(
pmode
&
~
(
MSVCRT__S_IREAD
|
MSVCRT__S_IWRITE
))
FIXME
(
": pmode 0x%04x ignored
\n
"
,
pmode
);
else
WARN
(
": pmode 0x%04x ignored
\n
"
,
pmode
);
if
(
oflags
&
MSVCRT__O_EXCL
)
creation
=
CREATE_NEW
;
...
...
@@ -2150,7 +2148,11 @@ int CDECL MSVCRT__wsopen_s( int *fd, const MSVCRT_wchar_t* path, int oflags, int
ERR
(
"Unhandled shflags 0x%x
\n
"
,
shflags
);
return
MSVCRT_EINVAL
;
}
attrib
=
FILE_ATTRIBUTE_NORMAL
;
if
(
!
(
pmode
&
~
MSVCRT_umask
&
MSVCRT__S_IWRITE
))
attrib
=
FILE_ATTRIBUTE_READONLY
;
else
attrib
=
FILE_ATTRIBUTE_NORMAL
;
if
(
oflags
&
MSVCRT__O_TEMPORARY
)
{
...
...
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