msvcrt: Don't ignore pmode attribute in _wsopen_s.
This commit is contained in:
parent
0694f8c89e
commit
760b78813d
|
@ -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))
|
if(pmode & ~(MSVCRT__S_IREAD | MSVCRT__S_IWRITE))
|
||||||
FIXME(": pmode 0x%04x ignored\n", pmode);
|
FIXME(": pmode 0x%04x ignored\n", pmode);
|
||||||
else
|
|
||||||
WARN(": pmode 0x%04x ignored\n", pmode);
|
|
||||||
|
|
||||||
if (oflags & MSVCRT__O_EXCL)
|
if (oflags & MSVCRT__O_EXCL)
|
||||||
creation = CREATE_NEW;
|
creation = CREATE_NEW;
|
||||||
|
@ -2150,6 +2148,10 @@ int CDECL MSVCRT__wsopen_s( int *fd, const MSVCRT_wchar_t* path, int oflags, int
|
||||||
ERR( "Unhandled shflags 0x%x\n", shflags );
|
ERR( "Unhandled shflags 0x%x\n", shflags );
|
||||||
return MSVCRT_EINVAL;
|
return MSVCRT_EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(pmode & ~MSVCRT_umask & MSVCRT__S_IWRITE))
|
||||||
|
attrib = FILE_ATTRIBUTE_READONLY;
|
||||||
|
else
|
||||||
attrib = FILE_ATTRIBUTE_NORMAL;
|
attrib = FILE_ATTRIBUTE_NORMAL;
|
||||||
|
|
||||||
if (oflags & MSVCRT__O_TEMPORARY)
|
if (oflags & MSVCRT__O_TEMPORARY)
|
||||||
|
|
Loading…
Reference in New Issue