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
8825f4df
Commit
8825f4df
authored
Apr 03, 2024
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase: Let stderr be always be unbuffered.
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
d9b3ad05
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
file.c
dlls/msvcrt/file.c
+6
-0
file.c
dlls/ucrtbase/tests/file.c
+0
-1
No files found.
dlls/msvcrt/file.c
View file @
8825f4df
...
...
@@ -830,9 +830,15 @@ int CDECL _isatty(int fd)
/* INTERNAL: Allocate stdio file buffer */
static
BOOL
msvcrt_alloc_buffer
(
FILE
*
file
)
{
#if _MSVCR_VER >= 140
if
((
file
->
_file
==
STDOUT_FILENO
&&
_isatty
(
file
->
_file
))
||
file
->
_file
==
STDERR_FILENO
)
return
FALSE
;
#else
if
((
file
->
_file
==
STDOUT_FILENO
||
file
->
_file
==
STDERR_FILENO
)
&&
_isatty
(
file
->
_file
))
return
FALSE
;
#endif
file
->
_base
=
calloc
(
1
,
MSVCRT_INTERNAL_BUFSIZ
);
if
(
file
->
_base
)
{
...
...
dlls/ucrtbase/tests/file.c
View file @
8825f4df
...
...
@@ -55,7 +55,6 @@ static void test_std_stream_buffering(void)
if
(
broken
(
!
GetProcAddress
(
GetModuleHandleA
(
"ucrtbase"
),
"__CxxFrameHandler4"
)
&&
!
pos
))
trace
(
"stderr is buffered
\n
"
);
else
todo_wine
ok
(
pos
==
4
,
"expected stderr to be unbuffered (%d)
\n
"
,
pos
);
fflush
(
stderr
);
...
...
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