mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
Core: Now compiles with NODEPRECATED
git-svn-id: svn://ultimatepp.org/upp/trunk@12127 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
77c9c16df5
commit
da31e9f76f
31 changed files with 143 additions and 114 deletions
|
|
@ -325,9 +325,10 @@ bool FileStream::Open(const char *name, dword mode) {
|
|||
int iomode = mode & ~SHAREMASK;
|
||||
handle = CreateFileW(ToSystemCharsetW(name),
|
||||
iomode == READ ? GENERIC_READ : GENERIC_READ|GENERIC_WRITE,
|
||||
(mode & NOREADSHARE ? 0 : FILE_SHARE_READ)
|
||||
| (mode & NOWRITESHARE ? 0 : FILE_SHARE_WRITE)
|
||||
| (mode & DELETESHARE ? FILE_SHARE_DELETE : 0),
|
||||
#ifdef DEPRECATED
|
||||
(mode & NOREADSHARE ? 0 : FILE_SHARE_READ) | (mode & DELETESHARE ? FILE_SHARE_DELETE : 0) |
|
||||
#endif
|
||||
(mode & NOWRITESHARE ? 0 : FILE_SHARE_WRITE),
|
||||
NULL,
|
||||
iomode == READ ? OPEN_EXISTING : iomode == CREATE ? CREATE_ALWAYS : OPEN_ALWAYS,
|
||||
FILE_ATTRIBUTE_NORMAL|FILE_FLAG_SEQUENTIAL_SCAN,
|
||||
|
|
|
|||
Loading…
Reference in a new issue