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
2ca229de
Commit
2ca229de
authored
May 19, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
May 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Improved _getmaxstdio and _setmaxstdio implementation.
parent
19c4c37a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
file.c
dlls/msvcrt/file.c
+9
-10
No files found.
dlls/msvcrt/file.c
View file @
2ca229de
...
@@ -3766,20 +3766,19 @@ int CDECL MSVCRT_wprintf_s(const MSVCRT_wchar_t *format, ...)
...
@@ -3766,20 +3766,19 @@ int CDECL MSVCRT_wprintf_s(const MSVCRT_wchar_t *format, ...)
*/
*/
int
CDECL
_getmaxstdio
(
void
)
int
CDECL
_getmaxstdio
(
void
)
{
{
FIXME
(
"stub, always returns 512
\n
"
);
return
MSVCRT_max_streams
;
return
512
;
}
}
/*********************************************************************
/*********************************************************************
* _setmaxstdio
_
(MSVCRT.@)
* _setmaxstdio (MSVCRT.@)
*/
*/
int
CDECL
_setmaxstdio
(
int
newmax
)
int
CDECL
_setmaxstdio
(
int
newmax
)
{
{
int
res
;
TRACE
(
"%d
\n
"
,
newmax
)
;
if
(
newmax
>
2048
)
res
=
-
1
;
if
(
newmax
<
_IOB_ENTRIES
||
newmax
>
MSVCRT_MAX_FILES
||
newmax
<
MSVCRT_stream_idx
)
else
return
-
1
;
res
=
newmax
;
FIXME
(
"stub: setting new maximum for number of simultaneously open files not implemented,returning %d
\n
"
,
res
)
;
MSVCRT_max_streams
=
newmax
;
return
re
s
;
return
MSVCRT_max_stream
s
;
}
}
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