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
9ea3c2d3
Commit
9ea3c2d3
authored
May 08, 2003
by
Adam Gundy
Committed by
Alexandre Julliard
May 08, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_open_osfhandle is expected to take the absence of either _O_TEXT or
_O_BINARY to mean _O_BINARY.
parent
18af8d86
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
file.c
dlls/msvcrt/file.c
+9
-3
No files found.
dlls/msvcrt/file.c
View file @
9ea3c2d3
...
...
@@ -1124,13 +1124,19 @@ int _wcreat(const MSVCRT_wchar_t *path, int flags)
*/
int
_open_osfhandle
(
long
hand
,
int
flags
)
{
int
fd
;
/* _O_RDONLY (0) always matches, so set the read flag
* MFC's CStdioFile clears O_RDONLY (0)! if it wants to write to the
* file, so set the write flag
* file, so set the write flag. It also only sets _O_TEXT if it wants
* text - it never sets _O_BINARY.
*/
/* FIXME: handle more flags */
int
fd
=
msvcrt_alloc_fd
((
HANDLE
)
hand
,
flags
|
MSVCRT__IOREAD
|
MSVCRT__IOWRT
);
TRACE
(
":handle (%ld) fd (%d) flags 0x%08x
\n
"
,
hand
,
fd
,
flags
|
MSVCRT__IOREAD
|
MSVCRT__IOWRT
);
flags
|=
MSVCRT__IOREAD
|
MSVCRT__IOWRT
;
if
(
!
(
flags
&
_O_TEXT
)
)
flags
|=
_O_BINARY
;
fd
=
msvcrt_alloc_fd
((
HANDLE
)
hand
,
flags
);
TRACE
(
":handle (%ld) fd (%d) flags 0x%08x
\n
"
,
hand
,
fd
,
flags
);
return
fd
;
}
...
...
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